Qt-interest Archive, March 2002
Linker error in VS 6.0
Message 1 in thread
Hello,
I have started a very small project in VS (main.cpp and about.h) as a
QT-project, but now if I try to compile I get this damn linker error:
Linking...
moc_aboutdialog.obj : error LNK2005: "public: __thiscall
CAboutDialog::CAboutDialog(class QWidget *,char const *,unsigned int)"
(??0CAboutDialog@@QAE@PAVQWidget@@PBDI@Z) already defined in main.obj
Debug/About.exe : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.
What can I do? Any helped is wanted...
Greetz
Björn
======================================
Björn Berg
Systemintegration, Open Source Development
GeNeSys GmbH & Co. KG
Müller-Breslau-Str. 30a
45130 Essen, Germany
Fon: +49 201 8954 5420
Email: berg@genesys-e.de
======================================
Message 2 in thread
Hi
The MS linker is not smart enough to handle duplicate symbols. My solution
was to get a better compiler and linker - Intel C++ for Windows
At 12:20 12/03/2002 +0100, Berg, Björn wrote:
>Hello,
>
>I have started a very small project in VS (main.cpp and about.h) as a
>QT-project, but now if I try to compile I get this damn linker error:
>
>Linking...
>moc_aboutdialog.obj : error LNK2005: "public: __thiscall
>CAboutDialog::CAboutDialog(class QWidget *,char const *,unsigned int)"
>(??0CAboutDialog@@QAE@PAVQWidget@@PBDI@Z) already defined in main.obj
>Debug/About.exe : fatal error LNK1169: one or more multiply defined symbols
>found
>Error executing link.exe.
>
>What can I do? Any helped is wanted...
>
>Greetz
>Björn
>
>======================================
>Björn Berg
>Systemintegration, Open Source Development
>GeNeSys GmbH & Co. KG
>Müller-Breslau-Str. 30a
>45130 Essen, Germany
>
>Fon: +49 201 8954 5420
>Email: berg@genesys-e.de
>======================================
>
>--
>List archive and information: http://qt-interest.trolltech.com
Regards
John,
-----
john@theKompany.com
http://www.theKompany.com