Mail Archives: djgpp/1997/06/04/19:50:55
Lowekamp 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:
>
Does the linker see the library file "libgrx20.a" ? It means that when
compiling
you must include in your command line something like -lgrx20. And to be
sure of
the result you may add -Lc:/DJGPPDIR/contrib/grx20/lib.
^^^^^^^^^^^
put here the directory where Djgpp is installed
If your program is called a.c, the command line should be
gcc -c a.c -o a.o
gcc -o a.exe a.o -Lc:/DJGPPDIR/contrib/grx20/lib -lgrx20
PS: There's a upgrade version of the library in the file "grx21a.zip" at
the same
location where you found grx20.zip
--
Michael Goffioul
EMIC - UCL
Batiment Maxwell
Place du Levant, 3
B-1348 Louvain-la-Neuve
Belgium
Tel.: +32 10 47 23 15
Fax.: +32 10 47 87 05
- Raw text -