rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
Posted: Mon Jan 17, 2005 12:26 pm Post subject: [SYS-DEVEL/GCC][SOLVED]problem (chyba) z stl |
|
|
napisalem sobie prosty programik w ktorym mam:
Code: | #include <cstdio>
#include <vector>
using namespace std;
vector<pair<int,int> > input_data;
vector<int> results; |
przy jego komiplacji nie wyskakuja zadne normalne komunikaty o bledach tylko:
Code: | /tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt6vectorISt4pairIiiESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x1cb): In function `std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >, std::pair<int, int> const&)':
: undefined reference to `__cxa_begin_catch'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt6vectorISt4pairIiiESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x207): In function `std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >, std::pair<int, int> const&)':
: undefined reference to `__cxa_rethrow'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt6vectorISt4pairIiiESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x212): In function `std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >, std::pair<int, int> const&)':
: undefined reference to `__cxa_end_catch'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt14__simple_allocISt4pairIiiESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS1_j+0x1d): In function `std::__simple_alloc<std::pair<int, int>, std::__default_alloc_template<true, 0> >::deallocate(std::pair<int, int>*, unsigned int)':
: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPij+0x1d): In function `std::__simple_alloc<int, std::__default_alloc_template<true, 0> >::deallocate(int*, unsigned int)':
: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt14__simple_allocISt4pairIiiESt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x1d): In function `std::__simple_alloc<std::pair<int, int>, std::__default_alloc_template<true, 0> >::allocate(unsigned int)':
: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/tmp/ccTDdlrH.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x1d): In function `std::__simple_alloc<int, std::__default_alloc_template<true, 0> >::allocate(unsigned int)':
: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/tmp/ccTDdlrH.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
|
moze ktos z was sie juz z czyms takim spotkal
bo mi osobiscie na blad w programie to nie wyglada
w kazdym razie nie uzywam takich dziwnie nazywajacych sie funkcji
Last edited by rzezioo on Mon Jan 17, 2005 6:06 pm; edited 1 time in total |
|