maybe. the typeof function is not standard c++ may be causing problems with different compiler versions.

it was used by Abby who is working on suffix arrays. You can try & fix it, or comment out the code that uses it.

On 01/03/2010 13:21, Marce van Velden wrote:
Hi,

When trying to compile mt3_chart i get a compilation error for PhraseDictionaryDynSuffixArray.o, what could be the cause/solution for this, could it be caused by adding -std=c++0x to the AM_CPPFLAGS (ref: http://www.mail-archive.com/[email protected]/msg01483.html)? Im compiling with gcc4.4.

g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/home/marce/srilm64/include -I/home/marce/irstlm/include -g -O2 -MT PhraseDictionaryDynSuffixArray.o -MD -MP -MF .deps/PhraseDictionaryDynSuffixArray.Tpo -c -o PhraseDictionaryDynSuffixArray.o PhraseDictionaryDynSuffixArray.cpp
In file included from PhraseDictionaryDynSuffixArray.h:5,
                 from PhraseDictionaryDynSuffixArray.cpp:1:
DynSuffixArray.h: In member function âvoid Moses::DynSuffixArray::printAuxArrays()â: DynSuffixArray.h:43: warning: comparison between signed and unsigned integer expressions
In file included from PhraseDictionaryDynSuffixArray.cpp:1:
PhraseDictionaryDynSuffixArray.h: In member function âbool Moses::ScoresComp::operator()(const Moses::Scores&, const Moses::Scores&) constâ: PhraseDictionaryDynSuffixArray.h:61: error: âtypeofâ was not declared in this scope
PhraseDictionaryDynSuffixArray.h:61: error: expected â;â before âitrâ
PhraseDictionaryDynSuffixArray.h:61: error: âitrâ was not declared in this scope
PhraseDictionaryDynSuffixArray.h:62: error: expected â;â before âitrâ
PhraseDictionaryDynSuffixArray.h:62: error: âitrâ was not declared in this scope

Thanks,
Marce


_______________________________________________
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

Reply via email to