Date: Thu, 1 Aug 1996 13:35:01 +0200 (IST) From: Eli Zaretskii To: Scott Phung Cc: djgpp AT delorie DOT com Subject: Re: Compile Errors In-Reply-To: <4tpcor$hbo@opus.vcn.bc.ca> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 31 Jul 1996, Scott Phung wrote: > command-line: > c:\djgpp\gcc.exe c:\djgpp\include\gfx-1.cc -o c:\djgpp\source\gfx-1.exe -lm > ---------------------------------------------------------------------------- First, you should append -lstdcx -liostream before -lm (to link in the C++ class libraries when you compile a C++ program. Without this, you will get unresolved externals. > c:\\djgpp\\include\\gfx-1.cc:17: warning: implicit declaration of function > `int MK_FP(...)' > c:\\djgpp\\include\\gfx-1.cc: In function `void SetMCGA()': > c:\\djgpp\\include\\gfx-1.cc:21: `_AX' undeclared (first use this function) This program uses Borland-specific extensions to C, like the _AX pseudo-register variables and the MK_FP macro. These things are done entirely different in DJGPP. To learn how, please download the file v2/faq201b.zip from the same place you get DJGPP and read chapter 18 of the FAQ list.