[Image-SIG] Total newbie: errors compiling PIL with VC6++

Stani Michiels stani@wish.net, stani@sms.genie.nl
Thu, 6 Dec 2001 16:22:33 +0100


Hi,
I'm new to python as well as C++.  I tried to compile the pil files to a dll
and it didn't work.  What I did was, I started a new C++ project in Visual
Studio 6 as a Win32 Dynamic-Library.  Unfortunately, I got the following
errors:
--------------------Configuration: VC6 - Win32 Debug--------------------
Compiling...
Dib.c
c:\program files\microsoft visual studio\vc98\include\basetsd.h(33) : error
C2632: 'int' followed by 'int' is illegal
c:\program files\microsoft visual studio\vc98\include\basetsd.h(33) : error
C2059: syntax error : ','
c:\program files\microsoft visual studio\vc98\include\basetsd.h(41) :
warning C4114: same type qualifier used more than once
c:\program files\microsoft visual studio\vc98\include\basetsd.h(41) : error
C2632: 'int' followed by 'int' is illegal
c:\program files\microsoft visual studio\vc98\include\basetsd.h(41) : error
C2059: syntax error : ','
Error executing cl.exe.

VC6.dll - 4 error(s), 1 warning(s)
-------------------------------------------------------------------------
(33):typedef int INT32, *PINT32;
(41):typedef unsigned int UINT32, *PUINT32;
-------------------------------------------------------------------------
What went wrong?  (I even undefined jpeg, mpeg and zlib.) Or is there
someone having a dsw project file or already the binary dll.  I'm using
Windows XP.
I want to install pyOpengl, which requires pil.
Thanks,
Stani