【发布时间】:2009-09-08 08:22:03
【问题描述】:
我是 iPhone 开发的新手,目前正在尝试将一些静态库添加到我的项目中,但出现“未找到符号”错误。
我已经用谷歌搜索了这个问题并尝试了不同的解决方案,但没有任何运气。这些库是在 PC 上而不是在 Mac 上编译的,所以我的问题是:
我需要在 Mac 上编译代码吗? 我需要什么工具才能编译它们?
我已将标题包含在项目中。我试图链接的代码是用 c 编写的,并且是为 ARM GCC 4.2 编译的。
我收到以下错误代码:
ld 警告:在 /Users//Playground/Collage/libbaseapi.a 中,文件不是必需的架构 ld 警告:在 /Users//Playground/Collage/capseng.a 中,文件不是必需的架构 ld 警告:在 /Users//Playground/Collage/excodecs.a 中,文件不是必需的架构 ld 警告:在 /Users//Playground/Collage/fmautorama.a 中,文件不是必需的架构 ld 警告:在 /Users//Playground/Collage/fmclearshot.a 中,文件不是必需的架构 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 警告:在 /Users//Playground/Collage/fmspeedview.a 中,文件不是必需的架构
未定义的符号: “_caps_destroyBuffer”,引用自: -[CollageMainView drawRect:] 在 CollageMainView.o ld:未找到符号 collect2: ld 返回 1 个退出状态 “_caps_destroyBuffer”,引用自: -[CollageMainView drawRect:] 在 CollageMainView.o ld:未找到符号 collect2: ld 返回 1 个退出状态 构建失败(1 个错误)
BR, 安德烈亚斯
【问题讨论】:
-
如果您发布完整的错误消息可能会有所帮助。
标签: iphone-sdk-3.0 static-libraries