【发布时间】:2014-03-26 15:49:48
【问题描述】:
我想在我的 Mavericks 机器上使用臭名昭著的“znort”块解析器,但目前无法编译它。 我被困在制作步骤中。 如果我保持 makefile 不变,我会收到以下错误:
c++ -- cb/allBalances.cpp
c++ -- callback.cpp
c++ -- cb/closure.cpp
c++ -- cb/dumpTX.cpp
c++ -- cb/help.cpp
c++ -- opcodes.cpp
c++ -- option.cpp
c++ -- parser.cpp
clangclangclang: : : clang: clang: clang: clang: clang: error: error: error: error: error: error: error: error: unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard- error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-fno-check-new' [-Wunused-command-line-argument-hard-error-in-future]
clangclang: : notenote: : this will be a hard error (cannot be downgraded to a warning) in the futurethis will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [.objs/parser.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [.objs/allBalances.o] Error 1
make: *** [.objs/option.o] Error 1
make: *** [.objs/opcodes.o] Error 1
make: *** [.objs/dumpTX.o] Error 1
make: *** [.objs/closure.o] Error 1
make: *** [.objs/callback.o] Error 1
make: *** [.objs/help.o] Error 1
当我将 CPLUS 更改为 gcc(而不是 g++)并注释掉 COPT 行时,我收到一个编译错误文件“google/dense-hash-maps not found”。
……你可能已经猜到了,我也无法编译它们……
我现在咬了两天的舌头,所以任何帮助将不胜感激!
【问题讨论】:
标签: c++ gcc makefile clang osx-mavericks