there seems to be a casting problem, or a template instantiation problem with some compilers. It works with my compiler (clang 6.1.0) but I can believe there may be problem with yours. Do you know what compiler you're using?

I've slightly changed the problem code:
https://github.com/moses-smt/mosesdecoder/commit/f6853ee37d634b1d841bc7f39cc2d82a1885e90e
Do and git pull and recompile. Let me know if it works for you.

If not, play around with that code, if you get it to work, please give me back the working code

On 14/09/2015 08:21, Danqing Huang (MSR Student-Person Consulting) wrote:

Hi,

I am using Moses on Ubuntu 12.04.

When I tried to compile the Moses, it failed. I use boost 1.46, IRSTLM, and the above tools are well installed.

My command to install Moses: ./bjam –with-irstlm=/home/MT/IRSTLM –j4

And the error seems to be “moses/parameters/ServerOptions.cpp:51:69: error: no matching function for call to ‘Moses::Parameter::SetParameter(size_t&, const char [19], long unsigned int) const’” in the log.

“failed gcc.compile.c++ moses/bin/gcc-4.6/release/link-static/threading-multi/parameters/ServerOptions.o...”

Any idea how to solve this problem?

Thanks,

Danqing Huang (MSR Student-Person Consulting)


--
Hieu Hoang
http://www.hoang.co.uk/hieu

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to