[Image-SIG] Building Imaging-1.0b1 on win95

Roger Burnham rburnham@cri-inc.com
Tue, 25 May 1999 18:21:18 -800


Hi,

I'm having trouble building imaging from sources:

Python 1.5.2
Imaging-1.0b1
jpeg-6b
zlib113
VC++ 6.0

Zlib is built (zlibmodule links okay), as well as jpeg.

I've created a generic DLL project for Imaging (based on the distrib example_nt). 
 It compiles fine, but the linker reports:

--------------------Configuration: Imaging - Win32 Release--------------------
Linking...
   Creating library Release/Imaging.lib and object Release/Imaging.exp
ZipDecode.obj : error LNK2001: unresolved external symbol _inflateEnd
ZipDecode.obj : error LNK2001: unresolved external symbol _inflate
ZipDecode.obj : error LNK2001: unresolved external symbol _inflateInit_
ZipEncode.obj : error LNK2001: unresolved external symbol _deflateEnd
ZipEncode.obj : error LNK2001: unresolved external symbol _deflate
ZipEncode.obj : error LNK2001: unresolved external symbol _deflateSetDictionary
ZipEncode.obj : error LNK2001: unresolved external symbol _deflateInit2_
Release/Imaging.dll : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

Imaging.dll - 8 error(s), 0 warning(s)

These are defined in and exported by zlib (in the .def file).  I get the same 
errors if I do not specify zlib as a linker option, so its a name mangling issue 
or some such.

I'm using the compiler switches:

/nologo /MD /W3 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/Imaging.pch" 
/YX /Fo"Release/" /Fd"Release/" /FD /c /Tc 

Any clues?

Thanks,


Roger Burnham   
Cambridge Research & Instrumentation   
rburnham@cri-inc.com   
http://www.cri-inc.com/   
http://starship.python.net/crew/roger/   
PGP Key: http://www.nai.com/default_pgp.asp   
PGP Fingerprint: 5372 729A 9557 5F36 177F  084A 6C64 BE27 0BC4 CF2D