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?
-stdlib=libstdc++ -std=c++11
but still the error persists :( – Darwindarwinian