致命错误:' type_traits'文件未找到

时间:2017-01-05 06:09:42

标签: c++ eclipse-cdt typetraits openfst

所以我刚刚开始使用Google的OpenFST工具包,并且我正在尝试他们的示例。在Eclipse Mars上使用C ++并在构建时出现以下错误:

fatal error: 'type_traits' file not found

这是我的示例程序 - 当我尝试here时。

#include <iostream>
#include <fst/fst-decl.h>
#include <fst/fstlib.h>

using namespace std;

int main() {

    fst::StdVectorFst fst; 

    return 0;
}

当我构建它时,我会收到以下错误:

/usr/local/include/fst/util.h:15:10: fatal error: 'type_traits' file not found
#include <type_traits>
         ^
1 error generated.
make: *** [src/sampleFST.o] Error 1

是否有链接器错误?为什么找不到头文件?它确实存在于我的计算机上的/usr/include/c++/4.2.1/tr1/目录中。我做错了什么?

0 个答案:

没有答案