PDA

View Full Version : Problem using QWinWidget..



Muffin
4th November 2009, 17:03
Hi
I'm trying to use QtWinMigrate and i have run in to linking problems.
As far as i can se my project settings are correct i have search alot on the error message but i have not found a solution.

It's a VS 2005 project and project properties are:
"Additional Include Directories" is set to $(QTDIR)\include\QtWinMigrate
and "Additiona Dependencies" have $(QTDIR)\lib\QtSolutions_MFCMigrationFramework-2.8d.lib

the error i get is:
error LNK2001: unresolved external symbol "public: static struct QMetaObject const QWinWidget::staticMetaObject" (?staticMetaObject@QWinWidget@@2UQMetaObject@@B)

is there anyone that might know what i'v missed?

Regards Robert

Muffin
6th November 2009, 16:09
Could it bee a calling conversion issue, or nothing gets exported from the QtSolutions_MFCMigrationFramework-2.8d.lib??

anyone?

mstegehu
17th February 2010, 11:05
Using some preprocessor defines solved this problem:

QT_QTWINMIGRATE_IMPORT

QT_DLL

QT_GUI_LIB

QT_CORE_LIB

QT_THREAD_SUPPORT

Regards,

Marcel

pjdixit
8th March 2010, 17:02
Adding QT_QTWINMIGRATE_IMPORT to preprocessor definition did the trick!