Re: g++ can't locate iosfwd

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

 



2011/8/26 Ian Lance Taylor <iant@xxxxxxxxxx>:
>> I think that one idea of installing gcc under /opt/csw/gcc4 was to
>> support an installation of multiple versions at the same time. For
>> example, gcc-3.x would go under /opt/csw/gcc3, gcc-4.x would go under
>> /opt/csw/gcc4, etc.
>
> To be clear, the header files and libraries are gcc version specific.
> You can't use the gcc-4.x libstdc++ header files with gcc-3.x.

The headers are installed in a directory which includes the version,
so that should work well.  I have a question about libraries, though.
There are some libraries which haven't changed their SONAMEs since
gcc-3.x.  For example a compiled gcc-3.4.6 will produce
libstdc++.so.6, and so wil gcc-4.6.1. The theory is that if the SONAME
of a shared library doesn't change, applications should be able to
link against that library at runtime and run fine.  If that's true, I
should be able to compile and link a binary against libstdc++.so.6
using gcc.3.4.6, and then replace libstdc++.so.6 with the one built by
gcc-4.6.1.  Is this in fact possible?

Maciej


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux