Xref: news2.mv.net comp.os.msdos.djgpp:5937 From: thoward AT hdss10 ( Ted Howard ) Newsgroups: comp.os.msdos.djgpp Subject: Re: grx20, other question Date: 11 Jul 1996 22:59:10 GMT Organization: Schlumberger Well Services Lines: 20 Message-ID: <4s40vu$mce@ohnasn01.sinet.slb.com> References: <31E3669E DOT 6CC8 AT einev0 DOT einev DOT ch> NNTP-Posting-Host: hdss10.houston.wireline.slb.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp : The problem : : When I use a grx fonction(for ex: GrSetMode) in my source and compile it : I get a message of "undefined reference to 'GrSetMode'" : But when I give a "gcc myprog.c .../grx20/lib/libgrx20.a" it's compile fine : and my .EXE is working. Well, when it gives you the "undefined reference..." garbage, are you linking with the libgrx20.a file? How I do it is: gxx myprog.c -lgrx20 (I use gxx and C++)Which tells the linker to link my ".o" with the file libgrx20.a in the LIB include path. I'm pretty sure this is your problem. -Ted ps There are other (better?) ways to get your object code to link with the grx20 library, but I try to get by with the minimum of knowledge on compilers-too many other things to learn in life :)