Tôi đã phát triển với CentOS, Qt 4.7, và GCC 4.4lỗi Linker: tài liệu tham khảo không xác định đến biểu tượng 'pthread_rwlock_trywrlock @@ GLIBC_2.2.5'
Tôi vừa mới cài đặt Red Hat phát triển Toolset 1.1 bao gồm GCC 4.7 .2, và vào cuối make
, tôi gặp lỗi
/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
Tôi đoán rằng các chủ đề Qt tham chiếu đến điều đó. Làm thế nào tôi có thể sửa chữa nó?
Dòng lệnh của bạn cho trình biên dịch/liên kết có chứa '-pthread' không? –