[Solved] qtwinmigrate-2.8_1-opensource install trouble
When I did make for qtwinmigrate-2.8_1-opensource, ld error happened as described under.
Please let me advise.( I wrote my procedure after error messages.)
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\winwidget.exe debug/main.o debu
g/qwinwidget.o debug/qwinhost.o debug/qmfcapp.o debug/moc_qwinwidget.o debug/moc
_qwinhost.o -L“c:\Qt\2010.05\qt\lib” -lmingw32 -lqtmaind -luser32 -lQtGuid4 -lQ
tCored4
c:\Qt\2010.05\qt\lib/libqtmaind.a(qtmain_win.o): In function `WinMain@16’:
C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more
\Troll\4.6\qt\src\winmain/qtmain_win.cpp:131: undefined reference to `qMain(int,
char**)’
collect2: ld returned 1 exit status
my procedure
1. install qt-sdk-win-opensource-2010.05
2. locate qtwinmigrate-2.8_1-opensource at C:\Qt\2010.05
3. comment out L10 at C:\Qt\2010.05\qtwinmigrate-2.8_1-opensource\src\qtwinmigrate.pri
because I use VS2008 express.
4. cd C:\Qt\2010.05\qtwinmigrate-2.8_1-opensource at command prompt
5. add path C:\Qt\2010.05\qt\bin;C:\Qt\2010.05\mingw\bin
6. qmake
7. mingw32-make
4 replies
Hi Jackbauer_777 (good nickname :-)
Did you solve that since your post?
If not, maybe it is a good idea to report your issue [bugreports.qt.nokia.com] in project Qt Solutions, components MFC migration.
Hmm sorry for the thread dig up…
I still have that trouble, using QTCreator :/ couldn’t find the reason, damnit!
Anyone have a clue?
It seems the linker can’t find the “main” entry point function. There is indeed not such a function in the “main.cpp”.
Instead, we have the following:
- int APIENTRY wWinMain(HINSTANCE hInstance,
- HINSTANCE /*hPrevInstance*/,
- LPTSTR /*lpCmdLine*/,
- int nCmdShow)
Anyone could help me on how to fix this?
(I’m newbie with Win32 API….)
D’oh! Just realized this thread was marked as [Solved]….. plz mod tell me if I must make a new one or if I can hijack this one :p
You must log in to post a reply. Not a member yet? Register here!


