【问题标题】:Echoprint implementation回声打印实现
【发布时间】:2013-01-02 03:55:46
【问题描述】:

我正在我的 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)

【问题讨论】:

    标签: c++ ios c codegen


    【解决方案1】:

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

    Echoprint iOS Missing Framework

    由于 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/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-31
      • 1970-01-01
      • 2020-03-21
      • 2014-11-24
      • 1970-01-01
      • 1970-01-01
      • 2014-06-30
      • 2018-04-11
      相关资源
      最近更新 更多