Date: Sat, 27 Jan 2001 09:49:45 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Donald Stevens" Message-Id: <9003-Sat27Jan2001094945+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: (dstevens6@qwest.net) Subject: Re: Undefined reference compiling modetest.c References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Donald Stevens" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 26 Jan 2001 16:59:50 -0700 > > I have used unzip32 and put the following in c:\djgpp: > djdev203, bnu2951b. gcc2952b. ,al3791b., txi40b., grx23., grx23fnt. > I put the various set= lines into autoexec.bat and rebooted. > Now when I give the command: > gcc -o modetest.exe modetest.c > I get a lot of: > undefined reference to GrColorInfo and > undefined reference to GrHLine > what is missing? You need to tell GCC to look into libgrx20.a library. It doesn't know that by default. The correct command is: gcc -o modetest.exe modetest.c -lgrx20