From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Headers Etc... Date: Thu, 27 Nov 1997 18:37:21 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 35 Message-ID: <347DBDE1.7C5B@cs.com> References: <65dl3r$6f6 AT bgtnsc02 DOT worldnet DOT att DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp244.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Walter Luke wrote: > > The following code: > > #include "graph.h" > > main() { > > g_set(10,10,2); > > } > > Returns the error "undefined reference to 'g_set'". The same is true > of any other call to a function in graph.h. Can someone point me in the > right direction here? DJGPP doesn't have a graph.h; might that be your problem? You are apparently trying to use Borland/Watcom graphics code with DJGPP, which does not work. DJGPP has several graphics library packages, including GRX 2.2, which is designed to have an interface similar to Borland's. There is also an interface library called 'bcc2grx' which allows you to port Borland graphics code to DJGPP. Both of these packages can be found in the 'v2tk' directory of any SimTel DJGPP mirror. I also recommend that you download and read chapters 10, 17, and 18 of the DJGPP Frequently Asked Questions list, to see the many differences between 16-bit real mode and 32-bit protected mode graphics. -- --------------------------------------------------------------------- | John M. Aldrich | "A woman is not property, and hus- | | aka Fighteer I | bands who think otherwise are living | | mailto:fighteer AT cs DOT com | in a dreamworld." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------