Mail Archives: djgpp/1997/06/04/01:52:31
Lowekamp (alowek AT pop DOT erols DOT com) wrote:
> Ok...
> I'm new to Djgpp. I got the GRX graphics lybrary (grx20.zip), unzip,
> maked ..., Everything went fine untill I tryed to compile a file of my
> own. It gave me a error:
> c:/djgpp/tmp\ccdaaaaa(.text+0x22):a.c: undefined reference to
> 'GrSetMode'
> Then I tryed a test file with my own comand line. Still the same error.I
> played with the -I include line option, still. I looked in the djgpp.env
> file and it looked like it should have been taken care of there:
<snip>
> [gcc]
> COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
> LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/Contrib/grx20/lib
Yes, the GRX dir -is- added to the -PATH-, but you need to tell gcc that
you want this library linked in with your program. I'm not sure what GRX
calls its library, but try adding -lgrx to the end of your command line.
(if that doesn't work, look at the library and use its name, minus the
beginning lib and the ending .a)
--
Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu
---> BELIEVE THE LIE <---
Linux: The choice of a GNU generation.
Winblows 95: The world's best-selling computer virus.
- Raw text -