[Qt-interest] Multiply defined symbols when trying to build QT 4.7 beta1 on Windows 7, 64b, with visual studio 2010
Bill O'Hara
billtohara at gmail.com
Thu May 13 01:10:04 CEST 2010
Hi,
I'm trying to build QT 4.7 beta 1 on a Windows 7 machine, 64bit, using
Visual Studio 2010.
Most things go ok, but I'm stuck on getting webkit to link cleanly. It
complains about multiply defined symbols in QtCore4.dll
A short extract:
QtCore.lib(qfsfileengine_iterator_win.obj) : error LNK2005: "public:
bool __cdecl QListData::isEmpty(void)const "
(isEmpty at QListData@@QEBA_NXZ) already defined in
QtCore4.lib(QtCore4.dll)
QtCore.lib(qfsfileengine_iterator_win.obj) : error LNK2005: "public:
void * * __cdecl QListData::at(int)const "
(at at QListData@@QEBAPEAPEAXH at Z) already definedin
QtCore4.lib(QtCore4.dll)
QtCore.lib(qfsfileengine_iterator_win.obj) : error LNK2005: "public:
class QChar * __cdecl QString::data(void)"
(data at QString@@QEAAPEAVQChar@@XZ) already defined in
QtCore4.lib(QtCore4.dll)
Creating library ..\..\..\..\lib\QtWebKit4.lib and object
..\..\..\..\lib\QtWebKit4.exp
..\..\..\..\lib\QtWebKit4.dll : fatal error LNK1169: one or more
multiply defined symbols found
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 10.0 \VC\BIN\amd64\link.EXE"' : return code '0x491'
Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft
Visual Studio 10.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Can anyone suggest how to get this to build cleanly? I'd /really/
prefer to not disable building of webkit since I need it for my
project.
My configure command was:
configure -platform win32-msvc2008 -release -opensource -shared
(note the use of msvc2008 since msvc2010 doesn't seem to be known).
Thanks
b.
More information about the Qt-interest-old
mailing list