Bug#112237: compiler versions.
Daniel Jacobowitz <dan@debian.org> writes:
> g++ 2.95.4 compiled code will NOT run if linked against libstdc++
> 2.9. It just won't happen.
That's a bummer.
> > Any tips on what command line to use for doing some libraries static
> > and others dynamic? Does the '-static' flag only affect the
> > immediatly previous '-l...'?
>
> No. But you can link to libstdc++.a explicitly.
>
I can't find a .a file for libstdc++ 2.9 in the debian packages.
$ dpkg -l '*stdc*dev'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-=======================
un libstdc++-dev <none> (no description available)
ii libstdc++2.10-dev 2.95.4-0.010810 The GNU stdc++ library (development files)
un libstdc++2.8-dev <none> (no description available)
un libstdc++2.9-dev <none> (no description available)
un libstdc++2.9-glibc2.1-de <none> (no description available)
un libstdc++3.0-dev <none> (no description
available)
$ sudo apt-get install libstdc++2.9-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Package libstdc++2.9-dev has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
of sources.list
E: Package libstdc++2.9-dev has no installation candidate
$ sudo apt-get install libstdc++2.9-glibc2.1-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Package libstdc++2.9-glibc2.1-dev has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
of sources.list
E: Package libstdc++2.9-glibc2.1-dev has no installation candidate
$ dpkg -L libstdc++2.9-glibc2.1 | egrep '*\.a$'
<no matches>
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
Reply to: