I asked a friend who does professional system support for Ubuntu's parent
company to review Moses for updates to compile on the newer g++4.3. He
forwarded the comments below with his permission to forward to the Moses
team for inclusion in an update. Hope someone can verify the suggestions
make use of this in an upcoming update.

Tom

---------- Forwarded message ----------

...  Recent gcc versions have been tightening up the way standard headers
include other standard headers, so you don't get the effect of including any
that you didn't ask for.

So a few extra includes are needed:

moses/src/gzfilebuf.h: #include <cstring>
moses/src/mempool.cpp: #include <cstring>
moses/src/PCNTools.cpp: #include <cstdlib>
moses/src/Util.cpp: #include <cstring>
moses/src/Util.h: #include <cstdlib>
moses/src/Word.h: #include <cstring>
moses/src/WordsBitmap.h: #include <cstdlib>

There's a ton of other warnings but upon detailed inspection, nothing that
should break the program.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to