Hi,
I get this error when linking with moses libs. Did I forget anything?
Thanks!
Jörg
g++ -o test Main.o IOWrapper.o -L../../../dist/lib -lz -lOnDiskPt
-lRuleTable -lCYKPlusParser -lScope3Parser -lmoses -lboost_thread-mt
-lkenlm -lkenutil
Undefined symbols for architecture x86_64:
"Moses::LanguageModelFactory::CreateLanguageModel(Moses::LMImplementation,
std::vector<unsigned long, std::allocator<unsigned long> > const&,
unsigned long, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, Moses::ScoreIndexManager&, int)",
referenced from:
Moses::StaticData::LoadLanguageModels() in libmoses.a(StaticData.o)
"Moses::LanguageModel::GetWeight() const", referenced from:
Moses::TargetPhrase::SetScore(Moses::ScoreProducer const*,
std::vector<float, std::allocator<float> > const&, std::vector<float,
std::allocator<float> > const&, float, Moses::LMList const&)in
libmoses.a(TargetPhrase.o)
Moses::TargetPhrase::SetScoreChart(Moses::ScoreProducer const*,
std::vector<float, std::allocator<float> > const&, std::vector<float,
std::allocator<float> > const&, Moses::LMList const&,
Moses::WordPenaltyProducer const*)in libmoses.a(TargetPhrase.o)
Moses::LMList::CalcScore(Moses::Phrase const&, float&, float&,
float&, Moses::ScoreComponentCollection*) constin libmoses.a(LMList.o)
"Moses::LanguageModel::GetOOVWeight() const", referenced from:
Moses::TargetPhrase::SetScore(Moses::ScoreProducer const*,
std::vector<float, std::allocator<float> > const&, std::vector<float,
std::allocator<float> > const&, float, Moses::LMList const&)in
libmoses.a(TargetPhrase.o)
Moses::TargetPhrase::SetScoreChart(Moses::ScoreProducer const*,
std::vector<float, std::allocator<float> > const&, std::vector<float,
std::allocator<float> > const&, Moses::LMList const&,
Moses::WordPenaltyProducer const*)in libmoses.a(TargetPhrase.o)
Moses::LMList::CalcScore(Moses::Phrase const&, float&, float&,
float&, Moses::ScoreComponentCollection*) constin libmoses.a(LMList.o)
--
**********************************************************************************
Jörg Tiedemann [email protected]
Dep. of Linguistics and Philology http://stp.lingfil.uu.se/~joerg/
Uppsala University tel: +46 (0)18 - 471 1412
Box 635, SE-751 26 Uppsala/SWEDEN fax: +46 (0)18 - 471 1094
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support