在mac os x mavericks 10.9.3中google-sparsehash出错

时间:2014-06-27 14:54:23

标签: c++ macos clang tr1

我正在编译一个依赖于google-sparsehash的C ++项目。 所以我通过brew install google-sparsehash --cc=gcc-4.2命令安装了稀疏。 但是,当我最终编译我的项目时,我得到fatal error: 'tr1/functional' file not found。我想解决这个问题,你能帮助我吗?

编译器的输出显示如下:

c++ -- cb/allBalances.cpp
c++ -- cb/allAddresses.cpp
c++ -- callback.cpp
c++ -- cb/closure.cpp
c++ -- cb/dumpTX.cpp
c++ -- parser.cpp
c++ -- cb/pristine.cpp
c++ -- cb/rewards.cpp
clang: clang: clangclang: : clangclang: : clangclang: : warning: warning: warning: warning: warning: warning: warning: warning: argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'argument unused during compilation: '-fno-check-new'

In file included from cb/rewards.cpp:4:
In file included from ./util.h:103:
In file included from /usr/local/include/google/dense_hash_map:34:
/usr/local/include/sparsehash/dense_hash_map:106:10: fatal error: 'tr1/functional' file not found
In file included from cb/pristine.cpp:4:
In file included from ./util.h:103:
In file included from /usr/local/include/google/dense_hash_map:34:
/usr/local/include/sparsehash/dense_hash_map:106:10: fatal error: 'tr1/functional' file not found
In file included from cb/closure.cpp:4:
In file included from ./util.h:103:
In file included from /usr/local/include/google/dense_hash_map:34:
/usr/local/include/sparsehash/dense_hash_map:106:10: fatal error: 'tr1/functional' file not found
#include HASH_FUN_H                 // for hash<>#include HASH_FUN_H                 // for hash<>
     ^

当我输入c++ -v时,我得到:

Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix

谢谢。

0 个答案:

没有答案