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

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: grx
Date: 4 Jan 2002 21:05:29 GMT
Organization: Cornell University
Lines: 26
Sender: asu1 AT cornell DOT invalid (on pool-141-149-207-152.syr.east.verizon.net)
Message-ID: <Xns918CA36CD9CD3ASINANUNUR@132.236.56.8>
References: <20020104 DOT 134346 DOT -169285 DOT 0 DOT the_juggernaut AT juno DOT com>
NNTP-Posting-Host: pool-141-149-207-152.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1010178329 12188 141.149.207.152 (4 Jan 2002 21:05:29 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 4 Jan 2002 21:05:29 GMT
User-Agent: Xnews/4.06.22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

the_juggernaut AT juno DOT com wrote in news:20020104.134346.-
169285 DOT 0 DOT the_juggernaut AT juno DOT com:

>> 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?

info ld invoc opt

-lgrx20 means link to libgrx20.a in one of the library search paths. if you 
specify -libgrx20, the file searched for is libibgrx20.a.

-- 
--------------------------------
A. Sinan Unur
http://www.unur.com/

- Raw text -


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