I have a stub Qt application and I keep getting compiler errors
#include <QApplication>
int main(int argc, char *argv[])
{
return 0;
}
I used qmake -project
and qmake
commands and as far as I can tell
they did their job correctly. When I subsequently call make
at the command
line I get the 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: Invalid option 'threads' make[1]: *** [release/Main.o] Error 1 make: *** [release] Error 2
My searches on Google tell me that threading is important to keep but not how to fix this error. Any help will be appreciated.