We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ 96%] Built target cpp-sdk [ 96%] Linking CXX executable cpp-sdk-sample /usr/bin/ld: ../lib/libalibabacloud-oss-cpp-sdk.a(ResumableCopier.cc.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status sample/CMakeFiles/cpp-sdk-sample.dir/build.make:212: recipe for target 'sample/cpp-sdk-sample' failed make[2]: *** [sample/cpp-sdk-sample] Error 1 CMakeFiles/Makefile2:141: recipe for target 'sample/CMakeFiles/cpp-sdk-sample.dir/all' failed make[1]: *** [sample/CMakeFiles/cpp-sdk-sample.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2 为什么会导致 pthread_create?
The text was updated successfully, but these errors were encountered:
把这一行添加到CmakeLists.txt
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
Sorry, something went wrong.
遇到同样的问题。 奇怪怎么还不修复这个问题?难道让每个用户都手动改?
No branches or pull requests
[ 96%] Built target cpp-sdk
[ 96%] Linking CXX executable cpp-sdk-sample
/usr/bin/ld: ../lib/libalibabacloud-oss-cpp-sdk.a(ResumableCopier.cc.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
sample/CMakeFiles/cpp-sdk-sample.dir/build.make:212: recipe for target 'sample/cpp-sdk-sample' failed
make[2]: *** [sample/cpp-sdk-sample] Error 1
CMakeFiles/Makefile2:141: recipe for target 'sample/CMakeFiles/cpp-sdk-sample.dir/all' failed
make[1]: *** [sample/CMakeFiles/cpp-sdk-sample.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
为什么会导致 pthread_create?
The text was updated successfully, but these errors were encountered: