在mavericks上编译znorts blockparser语言 - 出错

compiling znorts blockparser on mavericks - make error

本文关键字:语言 出错 blockparser znorts mavericks 编译      更新时间:2023-10-16

我想在我的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"。

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

我现在咬我的舌头两天,所以任何帮助将不胜感激!

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

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