delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/04/17:11:11

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <000b01c1956c$2bd572e0$e24a183e@i226>
From: "Kredba" <kredba AT mbox DOT dkm DOT cz>
To: <djgpp AT delorie DOT com>
References: <20020104 DOT 134346 DOT -169285 DOT 0 DOT the_juggernaut AT juno DOT com>
Subject: Re: grx
Date: Fri, 4 Jan 2002 23:06:31 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019