在小牛队中编译znorts blockparser - 犯错误

时间:2014-03-26 15:49:49

标签: c++ gcc makefile clang osx-mavericks

我想使用臭名昭着的" znort"在我的小牛机器上使用blockparser,但到目前为止还无法编译它。 我坚持制作步骤。 如果我保持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"。

......你可能已经猜到了,我也无法编译它们......

我现在咬了两天舌头,所以任何帮助都会受到赞赏!

1 个答案:

答案 0 :(得分:0)

我在GitHub上看到了这个问题,建议您运行sudo apt-get install sparsehash来解决错误。 Haven没试过,但我希望它有所帮助。

https://github.com/znort987/blockparser/issues/2