mac出现错误“ld: symbol(s) not found for architecture x86_64”
2016-09-29 11:11
525 查看
SET(CMAKE_C_COMPILER g++ )
SET(CMAKE_MODULE_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_SHARED_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_EXE_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_STATIC_LINKER_FLAGS "-lstdc++.6")
用c++编译器编译,链接再链上stdc++
SET(CMAKE_MODULE_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_SHARED_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_EXE_LINKER_FLAGS "-lstdc++.6")
SET(CMAKE_STATIC_LINKER_FLAGS "-lstdc++.6")
用c++编译器编译,链接再链上stdc++
相关文章推荐
- mac 关于使用protobuf出现ld: symbol(s) not found for architecture x86_64的问题
- 使用cocoapods出现ld: symbol(s) not found for architecture x86_64问题
- Xcode调用旧版本库出现Undefined symbols for architecture x86_64: ld: symbol(s) not found for architecture x86_64
- mac 安装PHP提示“ld: symbol(s) not found for architecture x86_64”
- ios集成讯飞语音出现错误 objc-class-ref in iflyMSC(IFlyContact.o),symbol(s) not found for architecture x86_64,
- iOS编译错误#ld: warning: ignoring file# 之 Undefined symbols for architecture x86_64 - ld: symbol(s) not found for architecture x86_64
- 在Mac下使用QT调用OpenCV产生error: symbol(s) not found for architecture x86_64错误
- mac下编译安装php7时报ld: symbol(s) not found for architecture x86_64的解决方法
- 关于报错ld: symbol(s) not found for architecture x86_64不是代码问题
- 解决 Mac OS X 下 Nginx 编译报错 symbol(s) not found for architecture x86_64
- iOS工程集成支付宝错误symbol(s) not found for architecture x86_64
- iOS 编译含C++代码出现ld: symbol(s) not found for architecture i386错误之解决
- [iOS]编译报错:ld: symbol(s) not found for architecture x86_64
- iOS支付宝ld: symbol(s) not found for architecture x86_64的问题
- ld: symbol(s) not found for architecture x86_64
- Mavericks boost ld: symbol(s) not found for architecture x86_64
- ld: symbol(s) not found for architecture x86_64
- iOS调试常见错误 如:symbol(s) not found for architecture x86_64
- iOS调试常见错误 如:symbol(s) not found for architecture x86_64
- ld: symbol(s) not found for architecture x86_64问题解决