在OS X Mavericks 10.9.3中使用clang Xcode 5.0.2编译c ++代码时出错

时间:2014-06-26 20:23:16

标签: c++ xcode macos makefile clang

我想知道获取error: invalid value '6' in '-O6'的原因和一些解决方案来超越此错误。当我尝试编译c ++比特币的区块链解析器项目时,会出现此问题。实际上这个项目的作者似乎只是在Ubuntu OS中编写了它,尽管我试图在我的OS X中编译这些代码。

以下是make命令的输出:

c++ -- cb/allBalances.cpp
c++ -- cb/allAddresses.cpp
c++ -- callback.cpp
c++ -- cb/dumpTX.cpp
c++ -- cb/closure.cpp
c++ -- cb/help.cpp
c++ -- option.cpp
c++ -- opcodes.cpp
clang: warning: argument unused during compilation: '-fno-check-new'
clang: warning: argument unused during compilation: '-fno-check-new'
clang: warning: argument unused during compilation: '-fno-check-new'
clang: warning: argument unused during compilation: '-fno-check-new'
error: invalid value '6' in '-O6'
clang: warning: argument unused during compilation: '-fno-check-new'
clang: warning: argument unused during compilation: '-fno-check-new'
make: *** [.objs/allAddresses.o] Error 1
make: *** Waiting for unfinished jobs....
error: invalid value '6' in '-O6'
make: *** [.objs/allBalances.o] Error 1
clang: warning: argument unused during compilation: '-fno-check-new'
error: invalid value '6' in '-O6'
error: invalid value '6' in '-O6'
error: invalid value '6' in '-O6'
make: *** [.objs/help.o] Error 1
make: *** [.objs/closure.o] Error 1
error: invalid value '6' in '-O6'
make: *** [.objs/dumpTX.o] Error 1
make: *** [.objs/callback.o] Error 1
clang: warning: argument unused during compilation: '-fno-check-new'
error: invalid value '6' in '-O6'
make: *** [.objs/opcodes.o] Error 1
error: invalid value '6' in '-O6'
make: *** [.objs/option.o] Error 1

0 个答案:

没有答案