Hello,
I can't run all the QThread applications. The problem is the same. Maybe the compiler need some configuration. I have the Qt 4.1.1 open source for windows XP. The problem is the following:
C:\Qt\4.1.1\MyThread>make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.1.1/MyThread'
g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/
include/QtCore" -I"C:/Qt/4.1.1/include/QtGui" -I"C:/Qt/4.1.1/include" -I"." -I"C
:/Qt/4.1.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"C:/Qt/4.1.1/mkspe
cs/win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
main.cpp:26:2: warning: no newline at end of file
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -Wl,-subsystem,windows -o "debug\MyThread.exe" tmp\obj\debug_sh
ared\main.o -L"C:\Qt\4.1.1\lib" -L"C:\Qt\4.1.1\lib" -lmingw32 -lqtmaind -lQtGui
d4 -lQtCored4
tmp\obj\debug_shared\main.o(.text$_ZN8MyThreadD1Ev[MyThread::~MyThread()]+0xb):
In function `ZN8MyThreadD1Ev':
C:/Qt/4.1.1/MyThread/main.cpp: undefined reference to `vtable for MyThread'
tmp\obj\debug_shared\main.o(.text$_ZN8MyThreadC1Ev[MyThread::MyThread()]+0x20):C
:/Qt/4.1.1/MyThread/main.cpp: undefined reference to `vtable for MyThread'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\MyThread.exe] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.1.1/MyThread'
mingw32-make: *** [debug-all] Error 2
Thanks,
Panos
Bookmarks