Even worse. Lots and lots of errors. WTF? /tmp/ccibbJCS.o: In function `readFullBlock(_IO_FILE*, wchar_t, wchar_t)': apertium_aprilfirst.cc:(.text+0x25): undefined reference to `std::allocator<wchar_t>::allocator()' apertium_aprilfirst.cc:(.text+0x39): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)' apertium_aprilfirst.cc:(.text+0x45): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x55): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x68): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x9d): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0xc2): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0xff): undefined reference to `std::cerr' apertium_aprilfirst.cc:(.text+0x104): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' apertium_aprilfirst.cc:(.text+0x109): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)' apertium_aprilfirst.cc:(.text+0x111): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))' apertium_aprilfirst.cc:(.text+0x12c): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' /tmp/ccibbJCS.o: In function `main': apertium_aprilfirst.cc:(.text+0x16a): undefined reference to `std::allocator<wchar_t>::allocator()' apertium_aprilfirst.cc:(.text+0x17f): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)' apertium_aprilfirst.cc:(.text+0x18b): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x1ad): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x20b): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x228): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x26b): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x288): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x2a8): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x2b4): undefined reference to `std::allocator<wchar_t>::allocator()' apertium_aprilfirst.cc:(.text+0x2c9): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)' apertium_aprilfirst.cc:(.text+0x2e8): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x2fb): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x30f): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x325): undefined reference to `std::allocator<wchar_t>::~allocator()' apertium_aprilfirst.cc:(.text+0x359): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x36a): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x386): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x3c5): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x3d8): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x3f4): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator+=(wchar_t)' apertium_aprilfirst.cc:(.text+0x41c): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::length() const' apertium_aprilfirst.cc:(.text+0x439): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator[](unsigned long)' apertium_aprilfirst.cc:(.text+0x461): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator[](unsigned long)' apertium_aprilfirst.cc:(.text+0x48d): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)' apertium_aprilfirst.cc:(.text+0x4a0): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::c_str() const' apertium_aprilfirst.cc:(.text+0x4c3): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x4d6): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x52a): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' apertium_aprilfirst.cc:(.text+0x546): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' /tmp/ccibbJCS.o: In function `__static_initialization_and_destruction_0(int, int)': apertium_aprilfirst.cc:(.text+0x57b): undefined reference to `std::ios_base::Init::Init()' apertium_aprilfirst.cc:(.text+0x580): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccibbJCS.o: In function `std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_insert(std::_List_iterator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)': apertium_aprilfirst.cc:(.text._ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE9_M_insertESt14_List_iteratorIS3_ERKS3_[std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_insert(std::_List_iterator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)]+0x3a): undefined reference to `std::_List_node_base::hook(std::_List_node_base*)' /tmp/ccibbJCS.o: In function `std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_erase(std::_List_iterator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >)': apertium_aprilfirst.cc:(.text._ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE8_M_eraseESt14_List_iteratorIS3_E[std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_erase(std::_List_iterator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >)]+0x1b): undefined reference to `std::_List_node_base::unhook()' /tmp/ccibbJCS.o: In function `__gnu_cxx::new_allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >::destroy(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >*)': apertium_aprilfirst.cc:(.text._ZN9__gnu_cxx13new_allocatorISbIwSt11char_traitsIwESaIwEEE7destroyEPS4_[__gnu_cxx::new_allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >::destroy(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >*)]+0x18): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' /tmp/ccibbJCS.o: In function `std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_create_node(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)': apertium_aprilfirst.cc:(.text._ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE14_M_create_nodeERKS3_[std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_create_node(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)]+0x85): undefined reference to `__cxa_begin_catch' apertium_aprilfirst.cc:(.text._ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE14_M_create_nodeERKS3_[std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_create_node(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)]+0x9d): undefined reference to `__cxa_rethrow' apertium_aprilfirst.cc:(.text._ZNSt4listISbIwSt11char_traitsIwESaIwEESaIS3_EE14_M_create_nodeERKS3_[std::list<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::_M_create_node(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)]+0xa7): undefined reference to `__cxa_end_catch' /tmp/ccibbJCS.o: In function `__gnu_cxx::new_allocator<std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::deallocate(std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >*, unsigned long)': apertium_aprilfirst.cc:(.text._ZN9__gnu_cxx13new_allocatorISt10_List_nodeISbIwSt11char_traitsIwESaIwEEEE10deallocateEPS6_m[__gnu_cxx::new_allocator<std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::deallocate(std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >*, unsigned long)]+0x1c): undefined reference to `operator delete(void*)' /tmp/ccibbJCS.o: In function `__gnu_cxx::new_allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >::construct(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)': apertium_aprilfirst.cc:(.text._ZN9__gnu_cxx13new_allocatorISbIwSt11char_traitsIwESaIwEEE9constructEPS4_RKS4_[__gnu_cxx::new_allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >::construct(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)]+0x45): undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)' /tmp/ccibbJCS.o: In function `__gnu_cxx::new_allocator<std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::allocate(unsigned long, void const*)': apertium_aprilfirst.cc:(.text._ZN9__gnu_cxx13new_allocatorISt10_List_nodeISbIwSt11char_traitsIwESaIwEEEE8allocateEmPKv[__gnu_cxx::new_allocator<std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::allocate(unsigned long, void const*)]+0x35): undefined reference to `std::__throw_bad_alloc()' apertium_aprilfirst.cc:(.text._ZN9__gnu_cxx13new_allocatorISt10_List_nodeISbIwSt11char_traitsIwESaIwEEEE8allocateEmPKv[__gnu_cxx::new_allocator<std::_List_node<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::allocate(unsigned long, void const*)]+0x4e): undefined reference to `operator new(unsigned long)' /tmp/ccibbJCS.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' /tmp/ccibbJCS.o:(.eh_frame+0x67): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status
On 04/01/2011 11:42 PM, Jimmy O'Regan wrote: > On 1 April 2011 22:40, Mikel Forcada<[email protected]> wrote: >> $ gcc apertium_aprilfirst.cc >> apertium_aprilfirst.cc: In function ‘std::wstring readFullBlock(FILE*, >> wchar_t, wchar_t)’: >> apertium_aprilfirst.cc:65: error: ‘exit’ was not declared in this scope >> > Aw. Damned gcc versions. Add > #include<cstdlib> > > -- Mikel L. Forcada (http://www.dlsi.ua.es/~mlf/) Departament de Llenguatges i Sistemes Informàtics Universitat d'Alacant E-03071 Alacant, Spain Phone: +34 96 590 9776 Fax: +34 96 590 9326 ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
