[Image-SIG] prob: compiling _imaging.pyd on win32

Markus von Ehr markus.vonehr@ipm.fhg.de
Thu, 13 Mar 2003 10:18:21 +0100


Hi,

I read a lot of messages dealing with compiler problems on windows,
but nothing helped.
The delivered Makefile.win only builds the .lib and not the dll.
I opened a new win32 dll project with vc5.0, but when linking it
claims that there are double definitions (_getenv, _free, _calloc,
_malloc,_sprintf,_fprintf, _exit)

MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf bereits in=20
LIBCMTD.lib(fprintf.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit bereits in=20
LIBCMTD.lib(crt0dat.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf bereits in=20
LIBCMTD.lib(sprintf.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _getenv bereits in=20
LIBCMTD.lib(getenv.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc bereits in=20
LIBCMTD.lib(dbgheap.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free bereits in=20
LIBCMTD.lib(dbgheap.obj) definiert
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _calloc bereits in=20
LIBCMTD.lib(dbgheap.obj) definiert
LINK : warning LNK4098: Standardbibliothek "MSVCRTD" steht in Konflikt=20
mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden
LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt=20
mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden
Debug/Imaging.dll : fatal error LNK1169: Ein oder mehrere mehrfach=20
definierte Symbole gefunden
Fehler beim Ausf=FChren von link.exe.

Imaging.dll - 8 Fehler, 2 Warnung(en)


When I leave out the file Except.c there are even more errors
(unresolved external symbols: _ImagingError_xxx)

Anybody has a makefile for use with nmake building the dll or the
vc5.0 project? It seems to me that several people have done it
succesfully.

Thanks for any help!

Markus