Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt v4.8.4 static build (Windows 7 x64): undefined reference to `pthread_testcancel'

$
0
0
Hi there! I’ve read a lot of articles about static build of Qt, and I faild to find somebody else, who are faced with the same problem. I downloaded Qt v4.8.4 and build it in according to these instructions [qt-project.org]. After that I created the simple Qt GUI project with only window, corrected the project file in according to the same instructions, added CONFIG+=STATIC additional qmake argument. But when I try to compile the project, the following error occurs on the linking step: g++ -static -static-libgcc -Wl,-s -mthreads -Wl,-subsystem,windows -o release\Test1s.exe release/main.o release/mainwindow.o release/moc_mainwindow.o  -L"e:\Distors\Programming\Qt\qt-everywhere-opensource-src-4.8.4\lib" -lmingw32 -lqtmain -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz e:\Distors\Programming\Qt\qt-everywhere-opensource-src-4.8.4\lib\libQtCore.a(qdatetime.o):qdatetime.cpp:(.text+0x35a8): undefined reference to `pthread_testcancel' If somebody was faced with such problem, please, let me know how you fixed it. Thank you. P.S. I do not provide the source code, because it’s default simple GUI project, created by QtCreator 2.7.0.

Viewing all articles
Browse latest Browse all 2113

Trending Articles