Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SYS-DEVEL/GCC][SOLVED]problem (chyba) z stl
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
rzezioo
Apprentice
Apprentice


Joined: 02 Nov 2004
Posts: 260
Location: Szczecin, Poland

PostPosted: Mon Jan 17, 2005 12:26 pm    Post subject: [SYS-DEVEL/GCC][SOLVED]problem (chyba) z stl Reply with quote

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 :lol:


Last edited by rzezioo on Mon Jan 17, 2005 6:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Mon Jan 17, 2005 5:25 pm    Post subject: Reply with quote

Spróbuj użyć do kompilacji g++. ZTCP automagicznie linkował z odpowiednią biblioteką.
Pozdr. Rav
_________________
Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead.
Back to top
View user's profile Send private message
rzezioo
Apprentice
Apprentice


Joined: 02 Nov 2004
Posts: 260
Location: Szczecin, Poland

PostPosted: Mon Jan 17, 2005 6:06 pm    Post subject: Reply with quote

no tak... to pomogło :D dzieki
_________________
USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum