2013-01-18 24 views
2

我在我的iOS 6應用中實現了echoprint,但是當我編譯我的項目時,它給了我Codegen中的錯誤。iOS中的Echoprint實現

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) 

有人可以幫我嗎? 謝謝

回答

1

如何編譯和iOS上運行的代碼生成在此說明:

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/