我相当新的iPhone开发,我目前正试图添加一些静态库到我的项目,但我得到“符号(S)没有找到”的错误。为iPhone编译时操作系统是否重要?
我已经搜索了这个问题,并尝试了不同的解决方案,没有任何运气。这些库是在PC上编译的,而不是在Mac上,所以我的问题是:
我是否需要在Mac上编译代码? 我需要什么工具来编译它们?
我已经将标题包含到项目中。我试图链接到的代码用c编写,并为ARM GCC 4.2编译。
我收到以下错误代码:
LD警告:在/用户/ <> /Playground/Collage/libbaseapi.a,文件是所需的体系结构 LD警告的不是:在/用户/ <> /游乐场/Collage/capseng.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/excodecs.a,文件不是必需的架构 ld警告:在/ Users/<>/Playground /Collage/fmautorama.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmclearshot.a,文件不是必需的架构师ure ld警告:在/ Users/<> /Playground/Collage/fmexif.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmextencoder.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmfacewarp.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmfxplugin.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmimageenhance.a,文件不是必需架构 ld警告:在/ Users/<> /Playground/Collage/fmimagefusion.a,文件不是必需的架构 ld警告:在/ Users/<> /Playground/Collage/fmjpegsqueeze.a,文件不是必需的体系结构 ld警告:在/ Users/<> /Playground/Collage/fmjpegtools.a,文件不是必需的体系结构 ld警告:在/ Users/<> /Playground/Collage/fmphotoart.a,文件不是必需的体系结构 ld警告:在/ Users/<> /Playground/Collage/fmredaway.a,文件不是必需的体系结构 ld警告:在/ Users/<> /Playground/Collage/fmsemc.a,文件是不要求架构 LD警告:在/用户/ <> /Playground/Collage/fmspeedview.a,文件是所需的体系结构
未定义的符号不: “_caps_destroyBuffer”,从引用: - [CollageMainView的drawRect:]在CollageMainView.o LD:符号(多个)未发现 collect2:LD返回1个退出状态 “_caps_destroyBuffer”,从引用: - [CollageMainView的drawRect:在CollageMainView.o LD:符号(S)没有发现 collect2:LD返回1个退出状态 构建失败(1个错误)
BR, 安德烈亚斯
如果您发布完整的错误消息,它可能会有所帮助。 – 2009-09-08 08:24:50