There were also linker problems with the previous version of RandLM on newer g++ that comes with 11.10 and 12.04. The new linker is more sensitive to the order of the includes. Oliver Wilson recently fixed RandLM. Maybe he can point you in the right direction with hunalign.
Oliver, I'm not sure if you monitors this list, so I included you here. Tom On Tue, 5 Jun 2012 13:36:57 +0200, Joerg Tiedemann <[email protected]> wrote: > I know that this is not really the forum for asking this question, > but > maybe someone of you can still help me with this problem of compiling > hunalign (1.1) with g++ 4.6.3 on Ubuntu 12.04. The linker gives me a > lot of errors like this > > alignment.o: In function `std::_Rb_tree<int, std::pair<int const, > std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >>, std::_Select1st<std::pair<int const, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > > >, std::less<int>, > std::allocator<std::pair<int const, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > > > >>::_M_insert_(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base > const*, std::pair<int const, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > > const&) [clone > .constprop.169]': > alignment.cpp:(.text+0x37): undefined reference to `operator > new(unsigned long)' > alignment.cpp:(.text+0x53): undefined reference to > `std::basic_string<char, std::char_traits<char>, std::allocator<char> >>::basic_string(std::basic_string<char, std::char_traits<char>, > std::allocator<char> > const&)' > alignment.cpp:(.text+0x66): undefined reference to > `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, > std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' > alignment.cpp:(.text+0xa8): undefined reference to > `__cxa_begin_catch' > alignment.cpp:(.text+0xb0): undefined reference to `operator > delete(void*)' > .... > > It compiles without problems with g++ 4.4.3 on Ubuntu 10.04 > > Thanks! > Jörg > > > -- > > ********************************************************************************** > Jörg > > Tiedemann [email protected] > Dep. of Linguistics and > Philology http://stp.lingfil.uu.se/~joerg/ > Uppsala University tel: +46 (0)18 > - 471 1412 > Box 635, SE-751 26 Uppsala/SWEDEN fax: +46 (0)18 - 471 1094 > > _______________________________________________ > 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
