From: bd733 AT rgfn DOT epcc DOT edu (Jason M. Daniels) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with included files!!!!! Date: 3 Jun 1997 23:43:14 GMT Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX Lines: 29 Message-ID: <5n2a6i$k7l@news.epcc.edu> References: <339482D7 DOT 48BD AT pop DOT erols DOT com> NNTP-Posting-Host: rgfn.epcc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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: > [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.