我已经在CentOS,QT 4.7开发和GCC 4.4链接错误:未定义的参考符号“pthread_rwlock_trywrlock @@ GLIBC_2.2.5”
我刚刚安装红帽开发工具套件1.1,其中包括GCC 4.7 。2,并在make
年底,我得到一个错误
/usr/bin/ld: ../../bin/Solo: undefined reference to symbol '[email protected]@GLIBC_2.2.5'
/usr/bin/ld: note: '[email protected]@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
我猜,Qt的线程被引用到。我该如何解决它?
您的编译器/链接器的命令行是否包含'-pthread'? – 2013-04-27 22:49:49