So I've just started off with Google's OpenFST toolkit and I'm trying out their examples. Using C++ on Eclipse Mars and upon build I get the following error:
fatal error: 'type_traits' file not found
Here's my sample program - when I'm trying from here.
#include <iostream>
#include <fst/fst-decl.h>
#include <fst/fstlib.h>
using namespace std;
int main() {
fst::StdVectorFst fst;
return 0;
}
And when I build it, I get the following errors:
/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
Is there some linker error? Why is it unable to find that header file? It does exist in the /usr/include/c++/4.2.1/tr1/
directory on my computer. What am I doing wrong?
looks like a C compiler, trying to compile a C++ file
the file
type_traits
is provided by packagelibstdc++
, see debian package searchrelated: clang throws error
file not found
when acppheader.h
file is wrapped in awrapper.hpp
file