This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.0.2 possible bug


Oleg Krivosheev writes:

> My code compiled with -g fails during linkage with bugs like

> Undefined			first referenced
>  symbol  			    in file
> overflow_error::overflow_error(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &)/home/room1/kriol/work/Project/lib/sparc-sun-solaris-gcc/libGeometry.a(GeometryTracker.o)

> checked obj file - and indeed constructor is UNDEFined.

It's defined in libstdc++.a, make sure you link with gcc -lstdc++ or
with g++.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]