www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/01/06:38:55

Date: Thu, 1 Aug 1996 13:35:01 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Scott Phung <landmark AT vcn DOT bc DOT ca>
Cc: djgpp AT delorie DOT com
Subject: Re: Compile Errors
In-Reply-To: <4tpcor$hbo@opus.vcn.bc.ca>
Message-Id: <Pine.SUN.3.91.960801133055.5091D-100000@is>
Mime-Version: 1.0

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.

- Raw text -


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