V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hcw1588
V2EX  ›  问与答

gnustep-libobjc2编译出错,求解答

  •  
  •   hcw1588 · 2013-08-13 14:29:54 +08:00 · 3094 次点击
    这是一个创建于 4121 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    4 条回复    1970-01-01 08:00:00 +08:00
    fangzhzh
        1
    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
        2
    hcw1588  
    OP
       2013-08-13 14:57:21 +08:00
    @fangzhzh 咋看。。。。
    hcw1588
        3
    hcw1588  
    OP
       2013-08-13 16:18:52 +08:00
    @fangzhzh 如何使用 -fobjc-noarc 标志
    fangzhzh
        4
    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上找到答案
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3676 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 04:39 · PVG 12:39 · LAX 20:39 · JFK 23:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.