Linking Error Building 64bit Qt app on 32bit XP machine
I'm trying to build a 64 bit version of my application (and yes I really do need the memory) on my 32bit xp dev box for production testing on our Vista64 server.
开发者_高级运维Previously, I have built w/o any errors the Qt 4.6.2 DLL's in 64 bit mode. That step went vary smooth.
Just to get started in building production, I'm trying to rebuild Qt's Star Delegate demo in 64bit mode. I converted the 32bit to 64bit app by changing the application configuration and adjusting the library's to the 64bit venisons. Now, when I go to link, I'm getting the following error when I link
1>------ Build started: Project: stardelegate, Configuration: Release x64 ------
1>Linking...
1>MSVCRT.lib(crtexew.obj) : error LNK2001: unresolved external symbol WinMain
1>release64\stardelegate.exe : fatal error LNK1120: 1 unresolved externals
Suggestions?
edit - After some more searching, discovered if I link as a console app it will work and run. But not as a windows app. And I don't have this problem in 32 bit mode.
qt application 64 bit windows
Edit: Nevermind, you found it. You need to link against qtmain
if you are not using CMake or qmake as stated here: http://doc.qt.io/archives/4.6/modules.html.
You don't need to accept this as I didn't find it, but just so future people see the answer and don't get confused.
精彩评论