Skip to content
New issue

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

提示:macOS 下链接c++ 库,使用libc++; linux 下使用libstdc++ #56

Closed
jingjingxyk opened this issue Mar 14, 2023 · 0 comments
Closed

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Mar 14, 2023

起因:

编译icu库时需要链接 c++ 标准库

macOS clang 不支持 libstdc++

经过验证结论: 链接c++ 库 :macOS 下使用libc++; linux 下使用libstdc++

 $link_cpp = $p->getOsType() == 'macos' ? '-lc++' : '-lstdc++';

参考信息看这里: https://www.zhihu.com/question/343205052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants