Qt Solutions Archive
I'm looking for information on compiling the Qt/MFC Migration Framework. I'm trying to compile it in Qt Creator, but I'm getting an error:
C:/ndk_buildrepos/qt-desktop/src/winmain/qtmain_win.cpp: 131: undefined reference to qMain(int, char**)
I don't even have such a folder on my PC.
Anybody with a link to some info (or first hand experience) on building this?
are you building an executable?
qMain is a define for main and needed if you create an executable which includes qmain.lib. qmain.lib implements the OS main methode and then calls qMain. the main you have in your main.cpp is redefined to qMain.
The project builds a library and some examples. It seems to be giving the error when building the example. The last output line says:
@mingw32-make.exe: Leaving directory `C:/Projects/libs/qt-solutions/qtwinmigrate-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/examples' @
What confuses me is that I get this error in the "Compile Output", but in the "Issues" window when I click on the error:
@C:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp:131: error: undefined reference to `qMain(int, char**)' @
The second line of the output changes to:
@File not found: C:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp@
I don't have such a directory, and it seems to be some hardcoded path somewhere in the make files.
So, it seems this is a reference to the Qt source which I installed with the package manager, but I don't know (yet) how to change the path to Qt source on my machine.