Objective c 与Cocotron的链接错误 我最近为CuCONTRON构建了Linux平台接口,能够构建没有错误的基础框架。
但是,在链接我的objective-C项目时,我遇到一个链接器错误: /Developer/Cocotron/1.0/Linux/i386/Frameworks/Foundation.framework//libFoundation.so:未定义对“\uu gnu\u objc\u personality\u v0”的引用 我在谷歌上搜索了一下,但没有发现任何有用的东西 下面是我的ld命令行(为了便于阅读,简化了一点): 我有一种感觉,基金会项目需要链接到一个它不存在的库,或者它可能链接到某个库的错误版本。但我不确定Objective c 与Cocotron的链接错误 我最近为CuCONTRON构建了Linux平台接口,能够构建没有错误的基础框架。,objective-c,linux,macos,cross-platform,cocotron,Objective C,Linux,Macos,Cross Platform,Cocotron,但是,在链接我的objective-C项目时,我遇到一个链接器错误: /Developer/Cocotron/1.0/Linux/i386/Frameworks/Foundation.framework//libFoundation.so:未定义对“\uu gnu\u objc\u personality\u v0”的引用 我在谷歌上搜索了一下,但没有发现任何有用的东西 下面是我的ld命令行(为了便于阅读,简化了一点): 我有一种感觉,基金会项目需要链接到一个它不存在的库,或者它可能链接到某个库
非常感谢您的帮助。您使用的是哪种编译器?我希望是Cococtron的那个?看看讨论
<> > <代码> GnuUbjcUnvialyV0,当您指定不正确的编译器时(例如GCC为C++代码而不含-x选项)。尝试设置一些开关,告诉g++您要编译Obj-C代码。更新:Cocotron存储库中有一些编译器更新,修复了 这个问题。安装脚本已更新,以获取这些和新的 版本如下: 使用此选项之前,请确保删除 /Developer/Cocotron/1.0/Downloads/gcc-4.3.1.tar.bz2,否则它不会选择 找到新的来源。重新安装时,请确保指定Linux i386 i、 e.
sudo./install.sh Linux i386
感谢您提供上述信息,并通过电子邮件向我发送修复程序。谢谢--我正在使用Cocotron编译器。
Ld /Users/me/MyProject/build/Linux/Release/ENCLAnalyzer normal i386
cd /Users/me/MyProject
/Developer/Cocotron/1.0/Linux/i386/gcc-4.3.1/bin/i386-ubuntu-linux-gcc -arch i386
-L/Users/me/MyProject/build/Linux/Release
-L../../frameworks/Shared/FFmpeg/Linux/lib
-L/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/lib
-L/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/intel/mkl/9.0/lib/32
-L/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/intel/ipp/5.1/ia32/sharedlib
-L/Users/me/frameworks/Shared/FFmpeg/Linux/lib
-F/Users/me/MyProject/build/Linux/Release
-F/Users/me/frameworks/Shared
-F/Developer/Cocotron/1.0/Linux/i386/Frameworks
-F/Users/me/frameworks/OtherProject/Linux
-filelist "/Users/me/MyProject/build/Linux/MyProject.build/Release/MyProject Linux.build/Objects-normal/i386/MyProject.LinkFileList"
-Wl,-rpath-link,/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/lib
-Wl,-rpath-link,../../frameworks/Shared/FFmpeg/Linux/lib
-Wl,-rpath-link,/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/intel/ipp/5.1/ia32/sharedlib
-Wl,-rpath-link,/Developer/Cocotron/1.0/PlatformInterfaces/i386-ubuntu-linux/intel/mkl/9.0/lib/32
-Wl,-rpath-link,/Developer/Cocotron/1.0/Linux/i386/Frameworks/Foundation.framework
-framework Foundation -framework MyFramework1 -framework MyFramework2 -framework MyFramework3
-o /Users/me/MyProject/build/Linux/Release/MyProject