compiling qt way windows xp mingw's g++
i have stub qt concentration i keep removing compiler errors
#include <qapplication>
int main(int argc, bake *argv[])
{
relapse 0;
}
i used qmake -project qmake commands distant i tell
they office correctly. i subsequently make during command
line i following error:
g++ -c -o2 -frtti -fexceptions -mthreads -wall -dunicode -dqt_largefile_support
-dqt_no_debug -dqt_gui_lib -dqt_core_lib -dqt_thread_support -dqt_needs_qmain -i
'../../../../qt/include/qtcore' -i'../../../../qt/include/qtcore' -i'../../../..
/qt/include/qtgui' -i'../../../../qt/include/qtgui' -i'../../../../qt/include' -
i'.' -i'c:/qt/include/activeqt' -i'release' -i'.' -i'../../../../qt/mkspecs/defa
ult' -o release/main.o main.cpp
cc1plus.exe: unfair choice 'threads'
make[1]: *** [release/main.o] blunder 1
make: *** [release] blunder 2
my searches google tell me threading vicious keep nonetheless to
fix error. any assistance appreciated.
edit (copied an answer op left):
i get:
g++ -enable-stdcall-fixup -wl,-enable-auto-import -wl,-enable-runtime-pseudo-rel oc
-wl,-s -pthread -wl -wl,-subsystem,windows -o release/raytrace.exe
object_scr ipt.raytrace.release -l'c:/qt/lib' -lmingw32 -lqtmain -lqtgui -lgdi32
-lcomdlg3 2 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lqtcore -lkernel32
-luser32 - lshell32 -luuid -lole32 -ladvapi32 -lws2_32
g++: unrecognized choice `-pthread'
/cygnus/cygwin-b20/h-i586-cygwin32/i586-cygwin32/bin/ld: can't open -lmsimg32:
no such record office collect2:
ld returned 1 exit station make[1]: ***
[release/raytrace.exe] blunder 1 make: *** [release] blunder 2
Comments
Post a Comment