This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: INT32: jmorecfg.h

Christopher Faylor wrote:
On Mon, Jul 26, 2004 at 08:44:11PM -0400, Mathieu Malaterre wrote:


I am trying to compile VTK using the jpeg library shipped with cygwin. And I have a problem of compilation:

Building object file vtkJPEGReader.o...
In file included from /usr/include/jpeglib.h:30,
from /home/mathieu/Kitware/VTK/Utilities/vtk_jpeg.h:21,
from /home/mathieu/Kitware/VTK/IO/vtkJPEGReader.cxx:23:
/usr/include/jmorecfg.h:250: error: conflicting types for `typedef long int
/usr/include/w32api/basetsd.h:52: error: previous declaration as `typedef int

could someone patch the jpeg6b lib (look at line 249) :

You're mixing cygwin includes with native windows includes.  That's not designed
to work well.

VTK compiles / runs on:

- Nearly every Unix-based plateform (SGI, HP-UX, SUN ...)
- Windows 95/98/NT/2000/XP
- Tons of linux flavor
- Mac OS X
- *BSD

So I believe we have a rather clean approach. It's just the fact that defining INT32 globally without no namespace is rather dangerous, don't you think ? All I was asking, was just for a little barrier (since a barrier from XMD_H was already done).

my 2 cents

Unsubscribe info:
Problem reports:

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