我正在使用第 3 方库,并在 xcode4 和 ios5 中出现以下链接错误。有人可以告诉我如何解决这种错误吗?非常感谢!!
Undefined symbols for architecture i386:
"std::string::assign(char const*, unsigned long)", referenced from:
meatloaf::boundaries::boundaries(std::vector<meatloaf::scanline, std::allocator<meatloaf::scanline> >) in libScannerKit.a(boundaries.o)
meatloaf::boundaries::find_boundaries() in libScannerKit.a(boundaries.o)
"std::string::_Rep::_S_empty_rep_storage", referenced from:
meatloaf::boundaries::boundaries() in libScannerKit.a(boundaries.o)
最佳答案
谢谢大家的帮助,非常感谢!我终于发现我需要将“其他链接器标志”设置为“-all_load -lstdc++”以进行调试和发布。在项目设置的“build设置/链接/其他链接器标志”
关于iphone - 如何修复 xcode(和 ios 5)中的链接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8846892/