From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems linking Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <38F71722 DOT E1E54447 AT pop DOT gis DOT net> <38F75621 DOT E787315E AT is DOT elta DOT co DOT il> <38F79F53 DOT 4700890F AT pop DOT gis DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 49 X-Trace: +rTuhtKwV2hkZzvZjFUCkd+sIONWOViD1yd4LJznUg8rV36l193h5Gw3Yq1d5bneXn+E9tidQ6fE!u3aG+mFvSzwRAaTcc/TAp497xHB2ZulIZsfer0pRdpdqVme4JKuxWFXkYIYaM710DyuLKivIjnDb!twdm3eY= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 15 Apr 2000 00:49:47 GMT Distribution: world Date: Sat, 15 Apr 2000 00:49:47 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 14 Apr 2000 18:44:35 -0400, Joseph Rose wrote: >Eli Zaretskii wrote: > >> Joseph Rose wrote: >> > >> > Eli Zaretskii wrote: >> > >> > > Please post one example of the command you used to compile/link and the >> > > error messages that the compiler prints. Then someone will figure out >> > > what your problems are. >> > >> > In RHIDE, the Options|Linker/Compiler Options menu options are blank. >> >> What about the exact text of the error messages? What did that say? > >The error text is as follows: > >Creating: TestGr.exe >Error: ../../zzz/gr/386p/TestGr.o: In function `main': >TestGr.c(14) Error: undefined reference to `SetGrMode' >TestGr.c(16) Error: undefined reference to `Draw_Line_Horiz' >TestGr.c(17) Error: undefined reference to `Draw_Line_Horiz' >Error: collect2: ld returned 1 exit status You forgot to add the library in Options > Libraries. For instance, with the Allegro library (similar to what you are probably using), type ``alleg'' somewhere into the big blue box and put an X in the blue column right next to it. This adds ``-lalleg'' to the linker's commandline. >The test and header code follow: >------------------------------------------- >VGADr386.h >/* >//Header for VGADr386 library. >//Requires dpmi.h. >*/ Are you linking VGADr386's library into your app? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/