iphone - 如何修复 xcode(和 ios 5)中的链接错误

标签 iphone xcode xcode4 ios5 xcode4.2

我正在使用第 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/

相关文章:

iphone - 内存不足但未在 Instruments 中看到过多的对象分配

xcode - 如何使环绕文本字段填满整个窗口?

ios - Xcode Command/usr/bin/codesign 失败,退出代码 1 : errSecInternalComponent

iphone - 如何在 iPhone 的 xcode 4 中制作 customUI 对象

iphone - Xcode - 根据正在编译代码的设备修改库搜索路径

iphone - 使用iPhone SDK播放音频

iPhone 应用程序大小限制

objective-c - 当 objective-c 中的.h文件为空时该怎么办?

iphone - 找不到配置文件

iphone - 如何在某些 View 上使用图像更改 UINavigationBar 背景,但不是全部?