【问题标题】:Can we set "-fno-jump-tables" as “Other Cflags” in XCode?我们可以在 XCode 中将“-fno-jump-tables”设置为“Other Cflags”吗?
【发布时间】:2012-04-16 13:52:48
【问题描述】:

有没有办法在 XCode 中将“-fno-jump-tables”设置为“Other Cflags”。我尝试设置它,但它给出了编译错误。错误内容类似于“i686-apple-darwin10-gcc-4.2.1: fno-jump-tables: No such file or directory”。

我使用的是 gcc 4.2 版。 Mac OS X 10.6.8。 Xcode 版本是 3.2.6。

问候, Vishvesh

【问题讨论】:

    标签: macos osx-snow-leopard


    【解决方案1】:

    从命令行对我来说效果很好。

    gcc -fno-jump-tables foo.c
    

    从错误来看,前导 - 似乎丢失了,fno-jump-tables 被视为文件。我假设您将 -fno-jump-tables 放在“其他 C 标志”中,而不仅仅是 fno-jump-tables

    【讨论】:

    • 我尝试了“fno-jump-tables”和“-fno-jump-tables”。结果是一样的。
    猜你喜欢
    • 2018-03-22
    • 2017-01-20
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 2012-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多