That was it. Thank you, Kenneth! Jörg
On Thu, Jun 14, 2012 at 3:38 PM, Kenneth Heafield <[email protected]> wrote: > Hi, > > This snippet from hunalign-1.1/src/hunalign/Makefile looks suspicious: > > LIBS = -lstdc++ > RM = rm -f > > hunalign: $(objects) > $(CXX) $(CPPFLAGS) $(LIBS) -o hunalign $(objects) > > g++ doesn't want or need a -lstdc++ to compile STL code. Try removing > $(LIBS) like so: > > RM = rm -f > > hunalign: $(objects) > $(CXX) $(CPPFLAGS) -o hunalign $(objects) > > Kenneth > > > On 06/14/2012 03:46 AM, Tomas Hudik wrote: >> Hi Joerg, >> If Hieu was able to compile it on gcc 4.6.3 and you not. And your error >> message looks like problem with STL library; I'd try to check if the problem >> persists also after compatibility packages (e.g. compat-gcc-34) >> installation. >> (make sure what gcc was used in hunalign development) >> >> Cheers, Tomas >> >> -----Original Message----- >> From: Hieu Hoang [mailto:[email protected]] >> Sent: Wednesday, June 13, 2012 3:26 PM >> To: [email protected] >> Subject: Re: [Moses-support] compiling hunalign >> >> hunalign 1.1 compiles for me on ubuntu with gcc 4.6.3 >> >> On 05/06/2012 12:36, Joerg Tiedemann 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 >>> >>> >> >> >> _______________________________________________ >> 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 -- ********************************************************************************** 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
