Mail Archives: djgpp/1998/01/27/21:59:51
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 -