From: Michael Goffioul Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with LIBGRX configuration Date: Wed, 04 Jun 1997 09:12:17 +0200 Organization: EMIC - UCL Lines: 42 Message-ID: <33951551.7522@emic.ucl.ac.be> References: <33949A13 DOT 7D0A AT pop DOT erols DOT com> NNTP-Posting-Host: ns2.emic.ucl.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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