Date: Tue, 27 Jan 1998 18:58:48 -0800 (PST) Message-Id: <199801280258.SAA06202@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Jason Alexander , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Setting directories for libraries Precedence: bulk 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