Total newbie: errors compiling PIL with VC6++

Stani Michiels stani at wish.net
Thu Dec 6 16:56:02 CET 2001


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.  I included all the .c and .h files I
could find in the source code from pil.  (Of course without coretest.c and
except.c)  Unfortunately, I got the errors beneath.
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, no?
Thanks,
Stani
--------------------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 : ','
path.c
d:\python21\modules\pil\vc6\path.c(29) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
_imaging.c
d:\python21\modules\pil\vc6\_imaging.c(56) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
_imagingtk.c
d:\python21\modules\pil\vc6\_imagingtk.c(17) : fatal error C1083: Cannot
open include file: 'Python.h': No such file or directory
decode.c
d:\python21\modules\pil\vc6\decode.c(32) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
display.c
d:\python21\modules\pil\vc6\display.c(20) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
encode.c
d:\python21\modules\pil\vc6\encode.c(26) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
map.c
d:\python21\modules\pil\vc6\map.c(20) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
outline.c
d:\python21\modules\pil\vc6\outline.c(22) : fatal error C1083: Cannot open
include file: 'Python.h': No such file or directory
_sanemodule.c
d:\python21\modules\pil\vc6\sane\_sanemodule.c(24) : fatal error C1083:
Cannot open include file: 'Python.h': No such file or directory
tkImaging.c
d:\python21\modules\pil\vc6\tk\tkimaging.c(43) : fatal error C1083: Cannot
open include file: 'tk.h': No such file or directory
Error executing cl.exe.

VC6.dll - 14 error(s), 1 warning(s)





More information about the Python-list mailing list