comp.lang.ada
 help / color / mirror / Atom feed
* Problem with Jewl on GPS and AdaGide
@ 2008-01-31 15:25 Stoik
  2008-02-01  0:17 ` Jeffrey R. Carter
  2008-02-01 21:05 ` John McCormick
  0 siblings, 2 replies; 5+ messages in thread
From: Stoik @ 2008-01-31 15:25 UTC (permalink / raw)


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?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Jewl on GPS and AdaGide
  2008-01-31 15:25 Problem with Jewl on GPS and AdaGide Stoik
@ 2008-02-01  0:17 ` Jeffrey R. Carter
  2008-02-01  7:32   ` Martin Krischik
  2008-02-01 21:05 ` John McCormick
  1 sibling, 1 reply; 5+ messages in thread
From: Jeffrey R. Carter @ 2008-02-01  0:17 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Jewl on GPS and AdaGide
  2008-02-01  0:17 ` Jeffrey R. Carter
@ 2008-02-01  7:32   ` Martin Krischik
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Krischik @ 2008-02-01  7:32 UTC (permalink / raw)


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@users.sourceforge.net
Ada programming at: http://ada.krischik.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Jewl on GPS and AdaGide
  2008-01-31 15:25 Problem with Jewl on GPS and AdaGide Stoik
  2008-02-01  0:17 ` Jeffrey R. Carter
@ 2008-02-01 21:05 ` John McCormick
  2008-02-01 21:15   ` John McCormick
  1 sibling, 1 reply; 5+ messages in thread
From: John McCormick @ 2008-02-01 21:05 UTC (permalink / raw)


On Jan 31, 9:25 am, Stoik <staszek.goldst...@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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with Jewl on GPS and AdaGide
  2008-02-01 21:05 ` John McCormick
@ 2008-02-01 21:15   ` John McCormick
  0 siblings, 0 replies; 5+ messages in thread
From: John McCormick @ 2008-02-01 21:15 UTC (permalink / raw)


On Feb 1, 3:05 pm, John McCormick <mccorm...@cs.uni.edu> wrote:
> On Jan 31, 9:25 am, Stoik <staszek.goldst...@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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-01 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-31 15:25 Problem with Jewl on GPS and AdaGide Stoik
2008-02-01  0:17 ` Jeffrey R. Carter
2008-02-01  7:32   ` Martin Krischik
2008-02-01 21:05 ` John McCormick
2008-02-01 21:15   ` John McCormick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox