Hi Hieu Hoang, I think the error arises due to the way Moses initializes WordLattice in main.cpp. Since WordLattice has a user-defined constructor (with arguments) and destructor in SRILM, no default constructor is created by the compiler. Thus "new WordLattice" in line 72 throws an error. The problem might be similar to something like this: http://www.gamedev.net/community/forums/topic.asp?topic_id=500402
Regards, Yestine On Wed, Feb 25, 2009 at 7:25 PM, Hieu Hoang <[email protected]> wrote: > > hi yestine > > the VS2005 build doesn't use SRILM for the same reason you're running into at > the moment - compiling and linking the SRILM lib with moses. however, if u > manage to sucessfully integrate it with Moses, please let me know & i'll > update the info and project files. > > Hieu Hoang > www.hoang.co.uk/hieu > > ________________________________ > From: [email protected] [mailto:[email protected]] On > Behalf Of Yestine Goh > Sent: 25 February 2009 01:16 > To: [email protected] > Subject: [Moses-support] Unable to build moses-cmd in VS2005 > > Hi, > > I downloaded and build SRILM in VS2005 using the VS project files from > http://www.inference.phy.cam.ac.uk/kv227/srilm/, following which I tried to > compile Moses in VS2005 with the Debug-withSRILM configuration. > > Moses\moses compiled fine, but Moses\moses-cmd gave me an error (along with > plenty of warnings): > moses-cmd\src\main.cpp(72) : error C2512: 'WordLattice' : no appropriate > default constructor available > > It is said that the VS2005 build doesn't use SRILM, but is it because SRILM > can't be compiled in Windows or is it due to code compatibility problems with > the VS compiler? > > Thanks & regards, > Yestine > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
