Unresolved text symbol "type_info virtual table", egcs/19980914

Martin Knoblauch knobi@rocketmail.com
Wed Sep 23 03:42:00 GMT 1998


---Peter Nordlund <petern@nada.kth.se> wrote:
>
> #include <iostream>
> 
> int tr1(int in) { return in+1;}
> int tr2(int in) { return in+2;}
> 
> template <int TR(int)> int transform(int a) { return TR(a); }
> template <> int transform<tr2>(int a) { return tr2(a+20); }
> 
> int main() {
>   cerr << "transform<tr1>(4):" << transform<tr1>(4) << endl;
>   cerr << "transform<tr2>(4):" << transform<tr2>(4) << endl;
>   return 0;
> }
> --------
> The code above passes egcs/1.1a but with egcs/19980914 I get an error:
> marr:hsv>>g++ test.cc
> ld32: WARNING 84: /usr/lib32/libm.so is not used for resolving any
> symbol.
> ld32: ERROR 33: Unresolved text symbol "type_info virtual table" --
1st
> referenced by
>
/usr/local/cvap/egcs/egcs-19980914/lib/gcc-lib/mips-sgi-irix6.4/egcs-2.92.07/libgcc.a(tinfo2.o).
> ld32: INFO 152: Output file removed because of error.
> collect2: ld returned 2 exit status
> 

 This is a known problem since 19980906. I hope someone is looking
into it.

Martin
===
------------------------------------------------------
Martin Knoblauch
email: knobi@knobisoft.de or knobi@rocketmail.com
www:   http://www.knobisoft.de
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the Gcc-bugs mailing list