My C++ is very weak but doing a fresh pull and make has multiple errors when attempting to build from master on Ubuntu 18.04. It appears that there are many issues, the first of which is
OurTree.cpp: In member function ‘bool smt::Tree::CreateForest(const char*)’:
OurTree.cpp:377:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(ibeg != '\0'){
^~~~ Makefile:13: recipe for target 'OurTree.o' failed
make[1]: *** [OurTree.o] Error 1
make[1]: Leaving directory '/home/a.melser/dev/NiuTrans.SMT/src/NiuTrans.Decoder'
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 2
But there seem to be many others, like missing variables (src/NiuTrans.PhraseExtractor/dispatcher.cpp, options.sort_phrase_table), missing methods:
ruletable_scorer.cpp: In member function ‘bool ruletable_scorer::PhraseTable::generatePhraseTable(ruletable_scorer::PhraseAlignment&, bool&, std::ofstream&, b
ool&, ruletable_scorer::OptionsOfScore&, ruletable_scorer::ScoreClassifyNum&)’:
ruletable_scorer.cpp:280:80: error: no matching function for call to ‘ruletable_scorer::PhraseTable::output(std::ofstream&, bool&, ruletable_scorer::OptionsOf
Score&, ruletable_scorer::ScoreClassifyNum&, double&)’
output( outfile, inverseFlag, options, scoreClassifyNum ,totalFrequency);
And maybe more. Is there something I am missing or has this version not been tested on Linux? If you have a version that has definitely been compiled on Linux I can compare with then I can help get this working!