Hi Barry, Yeah. That's my fault. Sorry for that. I've already received the similar email from Kenneth a couple of hours ago.
I think one of the solutions is that using std::stringstream instead of using snprintf() (Kenneth suggested the same answer to me as well) However, I chose to use #ifdef directive for Windows because snprintf() is basically used for debugging purposes just like you suggested. I've pushed a candidate with fixes to my fork git://github.com/tetsuok/mosesdecoder.git The fork is almost same as master branch except that change. Now, I'm asking my colleague who has Windows computers to make sure that the change works fine because I don't have any Windows machines. If it looks fine, I'll push to the master. If not, I'll replace the code related to snprintf() with std::stringstream. Cheers, Tetsuo On Wed, Apr 18, 2012 at 4:47 PM, Barry Haddow <[email protected]> wrote: > Hi Tetsuo > > It looks like some of your recent changes have broken the windows build of > mert. > > Is there a more portable alternative to using snprintf? At one time it was a > Linux-specific call. Or if it's only used for debug messages, then you could > just wrap the calls in > #if !defined(_WIN32) && !defined(_WIN64) > > cheers - Barry > > On Wednesday 18 April 2012 07:46:57 raka prasetya wrote: >> Hi barry >> >> Okay i attached the file >> it seems there is a problem with >> ‘snprintf’ is not a member of ‘std’ in timer.cpp and FeatureDataTest.cpp in >> mert directory when using cygwin to build moses >> >> >> Raka >> >> >> ________________________________ >> Dari: Barry Haddow <[email protected]> >> Kepada: raka prasetya <[email protected]>; "[email protected]" >> <[email protected]> Dikirim: Rabu, 18 April 2012 13:35 >> Judul: Re: [Moses-support] Bls: Moses-support Digest, Vol 66, Issue 41 >> >> >> Hi Raka >> >> Could you send the whole log? That's only a short extract. >> >> Cheers - Barry >> >> Sent from my ZX81 >> >> ----- Reply message ----- >> From: "raka prasetya" <[email protected]> >> Date: Wed, Apr 18, 2012 01:05 >> Subject: [Moses-support] Bls: Moses-support Digest, Vol 66, Issue 41 >> To: "[email protected]" <[email protected]> >> >> >> >> >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> > > -- > Barry Haddow > University of Edinburgh > +44 (0) 131 651 3173 > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > -- Tetsuo _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
