ios 编译过程中碰到std::ios_base::Init::~Init()错误的问题解决方法
2014-11-19 20:26
651 查看
转载自:/article/4371596.html 原作者:范国锋
标签:libstdc++.6.dylib
如果遇到下面这个问题是因为引用的c++库不正确导致,xcode 6.1版本需要引用 libstdc++.6.dylib才能解决问题。
The correct answer was provided by Jimmy Koerting in the comments: the app needs to be linked against libstdc++.dylib to resolve the standard library symbols. Thanks to Jimmy Koerting, but one more thing i want to add here is, if you are using xcode latest version with iOS 6.1 please add thislibstdc++.6.dylib
http://stackoverflow.com/questions/6882817/building-static-c-lib-for-use-with-objective-c-app-in-xcode-4
本文出自 “范国锋” 博客,请务必保留此出处/article/4371596.html
标签:libstdc++.6.dylib
如果遇到下面这个问题是因为引用的c++库不正确导致,xcode 6.1版本需要引用 libstdc++.6.dylib才能解决问题。
Undefined symbols for architecture armv6:"std::ios_base::Init::~Init()", referenced from: ___tcf_0 in libmyCppLib_dev.a(myCppLib.o)"std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from: _show_the_world in libmyCppLib_dev.a(myCppLib.o)"std::ios_base::Init::Init()", referenced from: __static_initialization_and_destruction_0(int,int)in libmyCppLib_dev.a(myCppLib.o)"std::cout", referenced from: _show_the_world in libmyCppLib_dev.a(myCppLib.o)ld: symbol(s) not found for architecture armv6collect2: ld returned 1 exit status
The correct answer was provided by Jimmy Koerting in the comments: the app needs to be linked against libstdc++.dylib to resolve the standard library symbols. Thanks to Jimmy Koerting, but one more thing i want to add here is, if you are using xcode latest version with iOS 6.1 please add thislibstdc++.6.dylib
http://stackoverflow.com/questions/6882817/building-static-c-lib-for-use-with-objective-c-app-in-xcode-4
本文出自 “范国锋” 博客,请务必保留此出处/article/4371596.html
相关文章推荐
- ios 编译过程中碰到std::ios_base::Init::~Init()错误的问题解决方法
- ios 编译过程中碰到std::ios_base::Init::~Init()错误的问题解决方法
- NDK 编译时出现 algorithm,vector std::ios_base::Init::Init() , 以及ostream等问题解决方案
- TeamTalk编译连接过程中遇到的问题及解决方法(iOS)(1)
- 编译时_RTC_Shutdown和_RTC_InitBase相关错误的解决方法
- std::ios_base::Init::Init()”,referenced from 错误解决
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题——gcc编译C++代码
- 编译时_RTC_Shutdown和_RTC_InitBase相关错误的解决方法
- 蘑菇街TeamTalk编译连接过程中遇到的问题及解决方法(iOS)
- 编译过程中碰到的几个小问题和解决方法
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- kerkee demo编译连接过程中遇到的问题及解决方法(iOS)
- LINK2001 编译时_RTC_Shutdown和_RTC_InitBase相关错误的解决方法
- 编译时_RTC_Shutdown和_RTC_InitBase相关错误的解决方法
- Coding编译连接过程中遇到的问题及解决方法(iOS)