i'v just tried it on ubuntu 10.0.4, gcc 4.4.3. It compiled ok.
looks like it doesn't like the typeof() function. it might be that gcc
has moved that function into another header file so you have to try &
figure out which header file to include.
Sorry not to be much help. If you fix it, please let me know
On 21/11/2010 08:38, Xiang Li wrote:
my OS Is ubuntu 10.10, the version of gcc and g++ are both v4.4,
before compile the moses, I have succeeded to compile the SRILM and
GIZA++, now, I can't succeed to compile the moses, and I encountered
the following errors when I inputed the command "make -j 4".
I don't know whether the moses source code is wrong or my
configuration is not correct. Thanks.
The error:
e just tried
In file included from PhraseDictionaryMemory.h:26,
from DecodeStep.cpp:23:
PhraseDictionary.h:142: warning: ‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.4/backward/auto_ptr.h:86)
In file included from BilingualDynSuffixArray.h:6,
from BilingualDynSuffixArray.cpp:1:
DynSAInclude/vocab.h:58: warning: type qualifiers ignored on function
return type
DynSAInclude/vocab.h:59: warning: type qualifiers ignored on function
return type
In file included from PhraseDictionaryMemory.h:26,
from Hypothesis.h:33,
from TranslationOption.h:31,
from DecodeStepGeneration.cpp:24:
PhraseDictionary.h:142: warning: ‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.4/backward/auto_ptr.h:86)
In file included from BilingualDynSuffixArray.cpp:1:
BilingualDynSuffixArray.h: In member function ‘bool
Moses::ScoresComp::operator()(const Moses::Scores&, const
Moses::Scores&) const’:
BilingualDynSuffixArray.h:65: error: ‘typeof’ was not declared in this
scope
BilingualDynSuffixArray.h:65: error: expected ‘;’ before ‘itr’
BilingualDynSuffixArray.h:65: error: ‘itr’ was not declared in this scope
BilingualDynSuffixArray.h:66: error: expected ‘;’ before ‘itr’
BilingualDynSuffixArray.h:66: error: ‘itr’ was not declared in this scope
In file included from PhraseDictionaryMemory.h:26,
from Hypothesis.h:33,
from SentenceStats.h:30,
from StaticData.h:42,
from BilingualDynSuffixArray.cpp:4:
PhraseDictionary.h: At global scope:
PhraseDictionary.h:142: warning: ‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.4/backward/auto_ptr.h:86)
BilingualDynSuffixArray.cpp: In member function ‘int
Moses::BilingualDynSuffixArray::LoadRawAlignments(Moses::InputFileStream&)’:
BilingualDynSuffixArray.cpp:76: error: ‘typeof’ was not declared in
this scope
BilingualDynSuffixArray.cpp:76: error: expected ‘;’ before ‘itr’
BilingualDynSuffixArray.cpp:76: error: ‘itr’ was not declared in this
scope
BilingualDynSuffixArray.cpp: In member function ‘int
Moses::BilingualDynSuffixArray::LoadRawAlignments(std::string&)’:
BilingualDynSuffixArray.cpp:87: error: ‘typeof’ was not declared in
this scope
BilingualDynSuffixArray.cpp:87: error: expected ‘;’ before ‘itr’
BilingualDynSuffixArray.cpp:87: error: ‘itr’ was not declared in this
scope
BilingualDynSuffixArray.cpp: In member function ‘std::pair<float,
float> Moses::BilingualDynSuffixArray::GetLexicalWeight(const
Moses::PhrasePair&) const’:
BilingualDynSuffixArray.cpp:254: error: ‘typeof’ was not declared in
this scope
BilingualDynSuffixArray.cpp:254: error: expected ‘;’ before ‘trgItr’
BilingualDynSuffixArray.cpp:254: error: ‘trgItr’ was not declared in
this scope
In file included from DecodeStepTranslation.h:26,
from DecodeStepTranslation.cpp:22:
PhraseDictionary.h:142: warning: ‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.4/backward/auto_ptr.h:86)
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support