Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
No Version
-
None
-
Windows 7, MSVC 2010, git://gitorious.org/qt-solutions/qt-solutions.git with SHA 8c2c3f0bde67e64c627c903b718bec92ace28680, Qt 5.0.1
Description
Building QtSingleApplication as DLL fails with Qt5
QtSingleApplication build fails with ‘-library’ option with Qt5. There are warnings of inconsistent dll linkage:
..\src\qtsingleapplication.cpp(137) : warning C4273: 'QtSingleApplication::sysInit' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(100) : see previous definition of 'sysInit' ..\src\qtsingleapplication.cpp(155) : warning C4273: 'QtSingleApplication::QtSingleApplication' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(69) : see previous definition of '{ctor}' ..\src\qtsingleapplication.cpp(168) : warning C4273: 'QtSingleApplication::QtSingleApplication' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(70) : see previous definition of '{ctor}' ..\src\qtsingleapplication.cpp(241) : warning C4273: 'QtSingleApplication::isRunning' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(80) : see previous definition of 'isRunning' ..\src\qtsingleapplication.cpp(260) : warning C4273: 'QtSingleApplication::sendMessage' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(91) : see previous definition of 'sendMessage' ..\src\qtsingleapplication.cpp(270) : warning C4273: 'QtSingleApplication::id' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(81) : see previous definition of 'id' ..\src\qtsingleapplication.cpp(288) : warning C4273: 'QtSingleApplication::setActivationWindow' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(83) : see previous definition of 'setActivationWindow' ..\src\qtsingleapplication.cpp(304) : warning C4273: 'QtSingleApplication::activationWindow' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(84) : see previous definition of 'activationWindow' ..\src\qtsingleapplication.cpp(324) : warning C4273: 'QtSingleApplication::activateWindow' : inconsistent dll linkage d:\qtsdk\repos\qt-solutions\qtsingleapplication\src\qtsingleapplication.h(92) : see previous definition of 'activateWindow' qtlocalpeer.cpp
And the build then fails with fatal errors.
The qtsingleapplication.pri should have QT_CONFIG instead of CONFIG in it.
Attachments
Issue Links
- is replaced by
-
QTSOLBUG-165 QtPropertyBrowser doesn’t compile as DLL (win32/VS/Qt5.0.0)
- Closed