我使用的是第三方库,在使用ios5的xcode4中得到下面的链接错误。有人能告诉我如何修复这个错误吗?非常感谢!
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)发布于 2012-09-22 04:24:40
谢谢大家的帮助,真的很感谢!我最终发现我需要在调试和发布时将"Other linker flags“设置为"-all_load -lstdc++”。在项目设置的“生成设置/链接/其他链接器标志”中
https://stackoverflow.com/questions/8846892
复制相似问题