iphone - 找不到库-命令/Developer/Platforms/iPhoneSimulat

我将 Activity 目标切换到iPad时收到编译器错误。将 Activity 目标设置为iPhone时,不会发生任何错误。

我尝试将“图书馆搜索路径”修改为以下内容,但没有好运。
-$(继承)
-\“$(SRCROOT)\”
-\“$(SRCROOT)/Classs \”

ld: library not found for -lGoogleAnalytics
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

-GoogleAnalytics位于Classes/thirdparty/libGoogleAnalytics.a Classes/thirdparty/GANTracker.h中

是否缺少属性构 build 置?

最佳答案

库路径搜索不是递归的。您将需要为链接器在该目录中的库显式添加Classes/thirdparty路径。

关于iphone - 找不到库-命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4714546/

相关文章:

c# - 在LINQ中设置或更新数据

time - 无法使用struct tms编译代码

compiler-errors - 打包双字节文件名时出错

visual-studio-2008 - 从VS2008 Prof迁移到VC++ Express 2

android - 无法在Android x86平板电脑上安装Android NDK应用程序

makefile - 如何编译 “Improved pngnq”?

iphone - 我的Xcode-编译错误只是显示红色的感叹号

iphone - Xcode4调试

android - Android错误不可见

flash - 在Flash/AS3中扩展SimpleButton类时出现错误1017