compile problems with Visual Studio Net 2003 MSC_VER=1310

Ralf Habacker ralf.habacker at freenet.de
Tue Sep 7 16:42:19 CEST 2004


Hi, 

while linking designer with Visual Studio Net 2003 I recognized the following 
link error while linking designer. 
It seems that cl does handle template instantiation in a different manner as 
other compilers. 
The reason for this failure seems to be that some methods of the template 
instance  QMap<class QString,class QString> and class QMapIterator<class 
QString,class QString> are defined global and collidates with same 
definitions in the qt dll. 

Is there anybody, how can tell me how to fix this problem ? 

Regards
Ralf 





        link /NOLOGO 
delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:win
spool.dll /DELAYLOAD:opengl32.dll /SUBSYSTEM:windows /LIBPATH:"C:
\Daten\qt-3\msvc\lib" /LIBPATH:"C:\Daten\qt-3\msvc\lib" /OUT:C:\Daten\qt-3\
msvc\bin\designer.exe @C:\DOKUME~1\HABACK~1.NIS\LOKALE~1\Temp\nm2BF.tmp

qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: class QString & 
__thiscall QMap<class QString,class QString>::operator[](class QString
const &)" (??A?$QMap at VQString@@V1@@@QAEAAVQString@@ABV1@@Z) bereits in 
designerlib.lib(project.obj) definiert

qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: __thiscall QMap<class 
QString,class QString>::~QMap<class QString,class QString>(void)"
 (??1?$QMap at VQString@@V1@@@QAE at XZ) bereits in designerlib.lib(project.obj) 
definiert

qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: __thiscall QMap<class 
QString,class QString>::QMap<class QString,class QString>(void)"
(??0?$QMap at VQString@@V1@@@QAE at XZ) bereits in designerlib.lib(project.obj) 
definiert
qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: class QMapIterator<class 
QString,class QString> __thiscall QMap<class QString,class QSt
ring>::insert(class QString const &,class QString const &,bool)" (?insert@?
$QMap at VQString@@V1@@@QAE?AV?$QMapIterator at VQString@@V1@@@ABVQStri
ng@@0_N at Z) bereits in designerlib.lib(project.obj) definiert
qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: class QMapIterator<class 
QString,class QString> __thiscall QMap<class QString,class QSt
ring>::end(void)" (?end@?$QMap at VQString@@V1@@@QAE?AV?
$QMapIterator at VQString@@V1@@@XZ) bereits in designerlib.lib(project.obj) 
definiert
qt-mt310.lib(qt-mt310.dll) : error LNK2005: "public: class QMapIterator<class 
QString,class QString> __thiscall QMap<class QString,class QSt
ring>::find(class QString const &)" (?find@?$QMap at VQString@@V1@@@QAE?AV?
$QMapIterator at VQString@@V1@@@ABVQString@@@Z) bereits in designerlib.
lib(project.obj) definiert
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll wird ignoriert; keine Importe 
von comdlg32.dll gefunden
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll wird ignoriert; keine Importe 
von oleaut32.dll gefunden
LINK : warning LNK4199: /DELAYLOAD:winmm.dll wird ignoriert; keine Importe von 
winmm.dll gefunden
LINK : warning LNK4199: /DELAYLOAD:wsock32.dll wird ignoriert; keine Importe 
von wsock32.dll gefunden
LINK : warning LNK4199: /DELAYLOAD:winspool.dll wird ignoriert; keine Importe 
von winspool.dll gefunden
LINK : warning LNK4199: /DELAYLOAD:opengl32.dll wird ignoriert; keine Importe 
von opengl32.dll gefunden
C:\Daten\qt-3\msvc\bin\designer.exe : fatal error LNK1169: Ein oder mehrere 
mehrfach definierte Symbole gefunden
NMAKE : fatal error U1077: 'link': R³ckgabe-Code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio .NET 
2003\VC7\BIN\nmake.exe"': R³ckgabe-Code '0x2'



More information about the kde-cygwin mailing list