Hi Tom

Looks like you need to include cstdlib in lmtable.h, in order to get exit(),

regards
Barry

On Tuesday 28 July 2009 02:26:31 Tom Hoar wrote:
> On my clean system build with g++4.3 (i.e. g++4.1 never installed):
>
> 1) GIZA++, SRILM and IRSTLM compile successfully
> 2) Moses configured --with-srilm=/usr/local/src/srilm compiles successfully
> 3) Moses configured --with-irstlm=/usr/local/src/irstlm fails to compile
> with the errors below.
>
> What else do we need to include?
>
> Tom
>
> * * * * * *
> In file included from LanguageModelIRST.cpp:28:
> /usr/local/src/irstlm/include/lmtable.h:227: warning: unused parameter
> 'lmfile'
> /usr/local/src/irstlm/include/lmtable.h: In member function 'void
> lmtable::filter2(const char*, int)':
> /usr/local/src/irstlm/include/lmtable.h:230: error: 'exit' was not declared
> in this scope
> /usr/local/src/irstlm/include/lmtable.h: At global scope:
> /usr/local/src/irstlm/include/lmtable.h:228: warning: unused parameter
> 'lmfile'
> /usr/local/src/irstlm/include/lmtable.h:228: warning: unused parameter
> 'buffMb'
> .
> .
> .
> PhraseDictionaryTree.cpp:591:   instantiated from here
> PrefixTree.h:141: warning: ignoring return value of 'size_t fread(void*,
> size_t, size_t, FILE*)', declared with attribute warn_unused_result
> make[3]: *** [LanguageModelIRST.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> LanguageModelInternal.cpp: In member function 'virtual bool
> Moses::LanguageModelInternal::Load(const std::string&, Moses::FactorType,
> float, size_t)':
> LanguageModelInternal.cpp:71: warning: 'nGram' may be used uninitialized in
> this function
> LanguageModelInternal.cpp:72: warning: 'factor' may be used uninitialized
> in this function
> make[3]: Leaving directory `/usr/local/src/moses-irstlm/moses/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/src/moses-irstlm/moses/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/moses-irstlm'
> make: *** [all] Error 2
> * * * * * *



_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to