gnustep-libobjc2编译出错,求解答

2013-08-13 14:29:54 +08:00
 hcw1588
Linking C shared library libobjc.so
clang: warning: argument unused during compilation: '-std=gnu99'
[ 45%] Built target objc
Scanning dependencies of target objcxx
[ 47%] Building CXX object CMakeFiles/objcxx.dir/objcxx_eh.cc.o
Linking C shared library libobjcxx.so
clang: warning: argument unused during compilation: '-std=gnu99'
[ 47%] Built target objcxx
Scanning dependencies of target AllocatePair
[ 48%] Building CXX object Test/CMakeFiles/AllocatePair.dir/AllocatePair.m.o
clang: warning: argument unused during compilation: '-fobjc-runtime=gnustep-1.7'
Linking C executable AllocatePair
clang: warning: argument unused during compilation: '-std=gnu99'
[ 48%] Built target AllocatePair
Scanning dependencies of target AllocatePair_optimised
[ 50%] Building CXX object Test/CMakeFiles/AllocatePair_optimised.dir/AllocatePair.m.o
clang: warning: argument unused during compilation: '-fobjc-runtime=gnustep-1.7'
Linking C executable AllocatePair_optimised
clang: warning: argument unused during compilation: '-std=gnu99'
[ 50%] Built target AllocatePair_optimised
Scanning dependencies of target BlockImpTest
[ 51%] Building CXX object Test/CMakeFiles/BlockImpTest.dir/BlockImpTest.m.o
clang: warning: argument unused during compilation: '-fobjc-runtime=gnustep-1.7'
Linking C executable BlockImpTest
clang: warning: argument unused during compilation: '-std=gnu99'
[ 51%] Built target BlockImpTest
Scanning dependencies of target BlockImpTest_optimised
[ 52%] Building CXX object Test/CMakeFiles/BlockImpTest_optimised.dir/BlockImpTest.m.o
clang: warning: argument unused during compilation: '-fobjc-runtime=gnustep-1.7'
Linking C executable BlockImpTest_optimised
clang: warning: argument unused during compilation: '-std=gnu99'
[ 52%] Built target BlockImpTest_optimised
Scanning dependencies of target BlockTest_arc
[ 54%] Building CXX object Test/CMakeFiles/BlockTest_arc.dir/BlockTest_arc.m.o
clang: warning: argument unused during compilation: '-fobjc-runtime=gnustep-1.7'
error: -fobjc-arc is not supported with fragile abi
make[2]: *** [Test/CMakeFiles/BlockTest_arc.dir/BlockTest_arc.m.o] 错误 1
make[1]: *** [Test/CMakeFiles/BlockTest_arc.dir/all] 错误 2
make: *** [all] 错误 2
3093 次点击
所在节点    问与答
4 条回复
fangzhzh
2013-08-13 14:35:59 +08:00
error: -fobjc-arc is not supported with fragile abi, 不用对这个文件使用arc的标志, 换句话说你如果是一个arc的项目, 需要对这个这个文件使用 -fobjc-noarc 标志.
另: 查一下是不是: -fobjc-noarc, 大概是的
hcw1588
2013-08-13 14:57:21 +08:00
@fangzhzh 咋看。。。。
hcw1588
2013-08-13 16:18:52 +08:00
@fangzhzh 如何使用 -fobjc-noarc 标志
fangzhzh
2013-08-13 16:23:53 +08:00
直接帮你把解决方案给搜出来了:
http://stackoverflow.com/questions/7919227/arc-error-fobjc-arc-is-not-supported-with-fragile-abi

另说一句题外话: 用google.com , 这种问题一般都能在SO上找到答案

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/78949

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX