Mail Archives: djgpp/1996/08/01/06:38:55
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 -