我正在使用第三方库,并在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)
答案 0 :(得分:3)
感谢大家的帮助,非常感谢!我终于发现我需要为调试和发布设置“其他链接器标志”为“-all_load -lstdc ++”。在项目设置的“构建设置/链接/其他链接器标志”