0

我目前正在尝试使用folly/facebook c++ 库中的 atomic_hashmaps,但是在安装 folly 之后,如果我只需要类似的 lib

#include <folly/AtomicHashMap.h> 

g++ 编译器抛出以下异常:

In file included from /usr/local/include/folly/ThreadLocal.h:40:0,
         from /usr/local/include/folly/ThreadCachedInt.h:31,
         from /usr/local/include/folly/AtomicHashArray.h:41,
         from /usr/local/include/folly/AtomicHashMap.h:93,
         from cartesian_zero.cpp:11:
/usr/local/include/folly/Portability.h:203:20: fatal error: __config: No such file or directory
compilation terminated. 

我正在编译我的 C++ 代码:

g++-5.1.0 -std=c++11 -o3 -lhiredis -fopenmp cartesian_zero.cpp

这是愚蠢的问题还是我的错?

4

0 回答 0