www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/14/20:54:24

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems linking
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <fteffs8r43hr4766fgl2j4sdt8kj611qon@4ax.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000412171857 DOT 18962C-100000 AT is> <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
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 <jorose AT pop DOT gis DOT net>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019