Mail Archives: djgpp/2002/01/04/17:11:11
Add the -L switch to gcc.
It tells to ld where to find the grx library.
gcc -O2 foo.c -o foo.exe -Lc:/path/to/lib -lgrx20
or try to use -lgrx20 instead of -libgrx20.
David
----- Original Message -----
From: <the_juggernaut AT juno DOT com>
To: <djgpp AT delorie DOT com>
Sent: Friday, January 04, 2002 8:43 PM
Subject: Re: grx
>
> > Remember to add the "-lgrx20" switch to your gcc compile line
>
> The test programs now work and everything seems to be compatible with my
> hardware. I still cannot get the hello example to link, however. With
> the "-lgrx20" switch, there's still the same "undefined reference to:"
> errors. So I tried "-libgrx20" and the undefined reference errors
> disappeared. But now I have these errors:
>
> Error: c:/djgpp/bin/ld.exe: cannot find -libgrx20
> Error: collect2: ld returned 1 exit status
>
> The first one is new, the second one was there before. Where does it say
> to use that switch?
>
> Thanks,
> Jon K
> ________________________________________________________________
> GET INTERNET ACCESS FROM JUNO!
> Juno offers FREE or PREMIUM Internet access for less!
> Join Juno today! For your FREE software, visit:
> http://dl.www.juno.com/get/web/.
- Raw text -