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
如题,在链接时出错:ld.lld: error: unable to find library -lpthread。
ld.lld: error: unable to find library -lpthread
vcpkg install drogon[ctl]:arm64-android
问题出在drogon/trantor/CMakeList.txt的第284行,这样修改能暂时解决问题:
drogon/trantor/CMakeList.txt
elseif(NOT ANDROID) #原先是else(WIN32) target_link_libraries(${PROJECT_NAME} PRIVATE pthread $<$<PLATFORM_ID:SunOS>:socket>)
Android NDK将pthread整合到了libc中,因此找不到也不需要独立的pthread库
pthread
libc
The text was updated successfully, but these errors were encountered:
感谢反馈,可以提交个PR吗
Sorry, something went wrong.
提交了,感谢回复 an-tao/trantor#344
No branches or pull requests
如题,在链接时出错:
ld.lld: error: unable to find library -lpthread
。复现BUG
vcpkg install drogon[ctl]:arm64-android
,随后查看错误日志修复
问题出在
drogon/trantor/CMakeList.txt
的第284行,这样修改能暂时解决问题:问题原因
Android NDK将
pthread
整合到了libc
中,因此找不到也不需要独立的pthread
库The text was updated successfully, but these errors were encountered: