PDA

View Full Version : Error Whle running in Windoes



kavinsiva
27th August 2009, 13:39
Hi,

When i am rum make command in my command prompt i am getting following error


C:\QtExamples\zoomer>make
make -f Makefile.Debug
make[1]: Entering directory `C:/QtExamples/zoomer'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o
bug\zoomer.exe -L"c:\Qt\2009.03\q
t\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
c:\Qt\2009.03\qt\lib/libqtmaind.a(qtmain_win.o): In function `WinMain':
C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more
/Troll/4.5.0/qt/src/winmain/qtmain_win.cpp:136: undefined reference to
`qMain(in
t, char**)'
collect2: ld returned 1 exit status
make[1]: *** [debug\zoomer.exe] Error 1
make[1]: Leaving directory `C:/QtExamples/zoomer'
make: *** [debug] Error 2

I am using Win Xp qt4.5.2 and mingw32 compiler pls help me

victor.fernandez
27th August 2009, 14:28
http://lists.trolltech.com/qt-interest/2008-08/thread00040-0.html

kavinsiva
28th August 2009, 09:11
Hi,
Thanks to reply to me In that file (qtmain_win.cpp) what i should change pls i dont know help me
Bye

miwarre
28th August 2009, 18:54
Hi,

I gather you EITHER
do without the 3rd parameter in your main() definition, if you can do without the environment parameter (using main(int argc, char *argv[]) instead of main(int argc, char *argv[], char **envp) ).

OR

edit the Qt library source so that it knows about main() calls with 3 parameters and recompile it.

I personally would go a great length along the first choice before attempting the second....

Ciao,

M.