Article View: gnu.g++.help
Article #768Re: problem with gcc 2.7.0
From: Boris P. Fomichev
Date: Mon, 18 Sep 1995 08:42
Date: Mon, 18 Sep 1995 08:42
37 lines
1978 bytes
1978 bytes
Marco Nissen (manis@coli.uni-sb.de) wrote: : Hi - : I have a problem with creating shared libraries using gcc 2.7.0 and : libg++ v2.7.0 at a sun sparc. The errors are the following : (I create the object-file with option '-fPIC'): : :g++ -shared -o libout basic/*.o : collect2: ld returned 2 exit status : ld: /KM2/local/lib/libstdc++.a(iostream.o): assert pure-text failed: reference to ios virtual tableat d3a8 in /KM2/local/lib/libstdc++.a : ld: /KM2/local/lib/libstdc++.a(iostream.o): assert pure-text failed: reference to ios virtual tableat d3ac in /KM2/local/lib/libstdc++.a : ld: /KM2/local/lib/libstdc++.a(iostream.o): assert pure-text failed: reference to [offset] at d3f0 in /KM2/local/lib/libstdc++.a : I don't know why it returns errors, cause it runs without any problems : under linux on a pc. : Can anybody help me ? : -- I had the same problem on SunOS. It seems to be the linker fault - it tries to link previuos version of libstdc++( not shared ) in. The workaround I used is to exclude old libraries from the linker path. Hope it helps, --------------------------------------------------------------------- Boris P. Fomichev Phone: (095)132-91-75 Moscow Centre For SPARC Technology, 51 Leninsky prospect, Moscow, Russia. email : fbp@lab.ipmce.su. --------------------------------------------------------------------- -- --------------------------------------------------------------------- Boris P. Fomichev Phone: (095)132-91-75 Moscow Centre For SPARC Technology, 51 Leninsky prospect,
Technical Details
Message-ID:
<DF3Euw.Kns@ipmce.su>Path:
arc1-ca.pugleaf.net!in1.uu.net!demos!ipmce!lab!fbpReferences:
<43f73h$8ih@coli-gate.coli.uni-sb.de>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help,comp.lang.c++ Path: arc1-ca.pugleaf.net!in1.uu.net!demos!ipmce!lab!fbp From: fbp@ipmce.su (Boris P. Fomichev) Subject: Re: problem with gcc 2.7.0 Message-ID: <DF3Euw.Kns@ipmce.su> Followup-To: gnu.g++.help,comp.lang.c++ Organization: Moscow Center of SPARC technology X-Newsreader: TIN [version 1.2 PL2] References: <43f73h$8ih@coli-gate.coli.uni-sb.de> Date: Mon, 18 Sep 1995 08:42:31 GMT