www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/21:59:51

Date: Tue, 27 Jan 1998 18:58:48 -0800 (PST)
Message-Id: <199801280258.SAA06202@adit.ap.net>
Mime-Version: 1.0
To: Jason Alexander <jalex AT ea DOT oac DOT uci DOT edu>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Setting directories for libraries

At 07:24  1/27/1998 -0800, Jason Alexander wrote:
>  I've installed djgpp and it seems to be working fine -- with the exception
>that it cannot find any header files (or libraries) stored outside of the
>default directories.
>
>  Suppose I write a simple program in RHIDE requiring grx22.h and libgrx20.a.
>If I type F9 to compile and link the program, gcc complains that it cannot
>find grx22.h.  If I copy grx22.h to my working directory, I can *compile* the
>program fine, but then gcc complains when it tries to link.  Again, if I copy
>libgrx20.a to my working directory, and *manually* invoke gcc by typing
>gcc -o myprog.exe myprog.o libgrx20.a, it works.
>
>  What variables/changes do I need to make?
Make sure you have set the DJGPP variable per README.1ST. Header files (like
grx22.h) should be copied to the include/ directory of your DJGPP
installation, and libraries to lib/. To link a library, use syntax like
`-lgrx20'.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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