2

我正在我的 iOS 6 应用程序中实现 echoprint,但是当我编译我的项目时,它给了我来自 Codegen 的错误。

    Undefined symbols for architecture i386:
  "Codegen::Codegen(float const*, unsigned int, int)", referenced from:
      codegen_wrapper(float const*, int) in Codegen_wrapper.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

1 回答 1

1

这里解释了如何在 iOS 上编译和运行 Codegen:

Echoprint iOS 缺少框架

由于 XCode 中的模拟器使用 i386 处理器,因此无法将其与在 arm7 中编译的对象链接。

在编译libechoprint-codegen-ios.a选择iPhone Simulator作为目标时,您将在 i386 中编译它。然后它将成功链接它。您可以通过键入来了解它是在 arm7 还是 i386 中编译的

lipo -info path/libechoprint-codegen-ios.a

来源:http ://www.verious.com/qa/linker-error-for-echoprint-in-ios/

于 2013-06-24T14:29:14.080 回答