FinnPos
FinnPos copied to clipboard
Building fails on MacOS
With MacOS Mojave,
getting a git clone, cd'ing to FinnPos and running make
results in following error:
make -C tagger
clang++ -Wall -Wextra -g -O3 -Wfatal-errors -Werror -std=c++0x -c -o io.o io.cc
In file included from io.cc:22:
In file included from ./io.hh:31:
./UnorderedMapSet.hh:4:10: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>
^~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [io.o] Error 1
make[1]: *** [all] Error 2
make: *** [finnpos] Error 2
Is there perhaps something else that should first be installed before running make?
Got it; need to modify top of UnorderedMapSet.hh
thus for MacOS:
#include <unordered_map>
#include <unordered_set>
namespace std
{
using std::unordered_map;
using std::unordered_set;
}