美文网首页
Library not found for -lstdc++.6

Library not found for -lstdc++.6

作者: 90后的晨仔 | 来源:发表于2021-10-19 09:41 被阅读0次
  • 1.编译完成之后报如下错误:
ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • 2.解决方法:
    (1).尝试在xcode搜索这个库却找不到
图1.png
图2.png

(2).所以想着应该是xcode 13中废弃这个库了,然后就在网上找了一下这个几个库分别给放到指定的位置下边就可以了。


/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

lstdc++.6.0.9下载链接

相关文章

网友评论

      本文标题:Library not found for -lstdc++.6

      本文链接:https://www.haomeiwen.com/subject/nqzooltx.html