This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Compiling POV-Ray 3.01 with Mingw32 (gcc 2.8.1)


Alain CULOS <ZAlain.Culos@bigfoot.com> writes:
> Hi All,
> 
> I hope this helps someone else.
> Now I have progressed a few steps and I stumble accross a PASCAL call.
> Could anyone help me with getting the following PASCAL call to compile.

Include the following somewhere in your code. This should be included in
Window32api/Defines.h where FAR is defined to be nothing.

  #ifdef __GNUC__
  # define NEAR
  #endif

Or add '-DNEAR=' to your CPPFLAGS.

Btw, a good way to debug these things is the following:
  
  1. compile the file with -save-temps option to gcc which creates a ".i"
     file that is pre-processed.
  2. Take a look at what the compiler actually sees in the .i file.

Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]