[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with libstdc++



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

i experienced the same problems today. the linker tries to link to the static
lib *.a because the dynamic version *.so is a dangling link (at least on my
box)
i solved this issue by linking it explicitly to /usr/lib/libstdc++.so.X where
X=5 for the g++-3.3.4 and X=6 for g++3.4

hth, knue

On Thursday 22 July 2004 14:12, Andreas Richter wrote:
> Hi,
>
> since my last apt-get update && upgrade (yesterday) i have some problems
> to compile programms against libstdc++. the following error occour:
>
> /usr/bin/ld: /usr/lib/gcc-lib/x86_64-linux/3.3.4/libstdc++.a(ios.o):
> relocation R_X86_64_32S can not be used when making a shared object;
> recompile with -fPIC
> /usr/lib/gcc-lib/x86_64-linux/3.3.4/libstdc++.a: could not read symbols:
> Bad value
> collect2: ld returned 1 exit status
>
> Can anybody tell me, what can i do to solve the problem? Is the
> libstdc++ not compiled with -fPIC? And when, why?
>
>
> --
> Greetings / Gruss
> Andreas Richter                                    http://www.oszine.de
> GPG-KeyID                                                    0x7BA12DD9
> Fingerprint           D2E9 202B F4F0 EB16 25DE 5FF7 0CF2 3C57 7BA1 2DD9
- --
Dipl. Math. Andreas Knuepfer
ZHR - Center for High Performance Computing, TU Dresden
Hans-Grundig-Strasse 25, R 311, 01062 Dresden,
phone +49-351-463-39280, fax +49-351-463-38245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA/7s94TR4gVE/spsRAtYfAJ9PiUT0t9XsfEtmgUydRMamvxoN1ACg7J3Y
WFMtLox53VENwy7tz45BgE0=
=1N1c
-----END PGP SIGNATURE-----



Reply to: