From: Stoik on
I am looking for someone to help me with JEWL in Windows environment
(Windows XP). I have installed academic version of GPS (2007-2) and
win32ada from the same source. Nevertheless, the linker is reporting:
ld.exe: cannot find -luser32 -lgdi32 -lcomdlg32 -lwinmm (from ld.exe).
What is the solution? Are there special switches or pragmas I should
use?
From: Jeffrey R. Carter on
Stoik wrote:
> I am looking for someone to help me with JEWL in Windows environment
> (Windows XP). I have installed academic version of GPS (2007-2) and
> win32ada from the same source. Nevertheless, the linker is reporting:
> ld.exe: cannot find -luser32 -lgdi32 -lcomdlg32 -lwinmm (from ld.exe).
> What is the solution? Are there special switches or pragmas I should
> use?

I have found that you have to replace those names in the source with the full
paths and names of the libraries installed by win32ada. Maybe there's a better
way, but that works.

--
Jeff Carter
"I'm particularly glad that these lovely children were
here today to hear that speech. Not only was it authentic
frontier gibberish, it expressed a courage little seen
in this day and age."
Blazing Saddles
88
From: Martin Krischik on
Jeffrey R. Carter schrieb:
> Stoik wrote:
>> I am looking for someone to help me with JEWL in Windows environment
>> (Windows XP). I have installed academic version of GPS (2007-2) and
>> win32ada from the same source. Nevertheless, the linker is reporting:
>> ld.exe: cannot find -luser32 -lgdi32 -lcomdlg32 -lwinmm (from ld.exe).
>> What is the solution? Are there special switches or pragmas I should
>> use?
>
> I have found that you have to replace those names in the source with the
> full paths and names of the libraries installed by win32ada. Maybe
> there's a better way, but that works.

yes the "-Wl,--library-path=", "-Wl,-rpath=" and "-Wl,-rpath-link="
options. They must appear before the -l (which is the short form of
"-Wl,--library=") option.

Martin

--
mailto://krischik(a)users.sourceforge.net
Ada programming at: http://ada.krischik.com
From: John McCormick on
On Jan 31, 9:25 am, Stoik <staszek.goldst...(a)gmail.com> wrote:
> I am looking for someone to help me with JEWL in Windows environment
> (Windows XP). I have installed academic version of GPS (2007-2) and
> win32ada from the same source. Nevertheless, the linker is reporting:
> ld.exe: cannot find -luser32 -lgdi32 -lcomdlg32 -lwinmm (from ld.exe).
> What is the solution? Are there special switches or pragmas I should
> use?

Here is the solution that I was given to solve this problem:

In file
jewl-win32_interface.adb
replace the one line
pragma Linker_Options ("-luser32 -lgdi32 -lcomdlg32 -lwinmm");
with these three lines
pragma Linker_Options ("-luser32");
pragma Linker_Options ("-lgdi32");
pragma Linker_Options ("-lcomdlg32");
pragma Linker_Options ("-lwinmm");

Build the JEWL library as described in the JEWL documentation.

John
From: John McCormick on
On Feb 1, 3:05 pm, John McCormick <mccorm...(a)cs.uni.edu> wrote:
> On Jan 31, 9:25 am, Stoik <staszek.goldst...(a)gmail.com> wrote:
>
> > I am looking for someone to help me with JEWL in Windows environment
> > (Windows XP). I have installed academic version of GPS (2007-2) and
> > win32ada from the same source. Nevertheless, the linker is reporting:
> > ld.exe: cannot find -luser32 -lgdi32 -lcomdlg32 -lwinmm (from ld.exe).
> > What is the solution? Are there special switches or pragmas I should
> > use?
>
> Here is the solution that I was given to solve this problem:
>
> In file
>   jewl-win32_interface.adb
> replace the one line
>   pragma Linker_Options ("-luser32 -lgdi32 -lcomdlg32 -lwinmm");
> with these three lines
>   pragma Linker_Options ("-luser32");
>   pragma Linker_Options ("-lgdi32");
>   pragma Linker_Options ("-lcomdlg32");
>   pragma Linker_Options ("-lwinmm");
>
> Build the JEWL library as described in the JEWL documentation.
>
> John

Oops! That is four lines. Too much C today.

John