【问题标题】:compiling znorts blockparser on mavericks - make error在 Mavericks 上编译 znorts blockparser - 出错
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

    • 您好,Anwell,感谢您的建议!我确实错过了安装 sparsehash。 …还有其他一些小故障。无论如何,在链接时遇到很多麻烦后,终于成功了。
    猜你喜欢
    • 2014-06-14
    • 2023-04-07
    • 2013-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-02
    • 2015-08-29
    • 2013-11-22
    相关资源
    最近更新 更多