Multiple Compiler Versions & STL Shared Library

Hi All,

I have a SunBlade 1500 running Solaris 9 and I need to work with several versions of the Sun Studio C++ compiler. I am linking to "/usr/lib/ libCstd.so.1". The install directory /opt/SUNWspro DOES NOT HAVE the file "libCstd.so", it only has symbolic links as /opt/SUNWspro/lib/libCstd.so -> /usr/lib/...

If I install another version of Sun Studio C++ into a different directory and it puts libCstd over in /usr/lib, it will overwrite the previous libCstd. So how do I access multiple versions of libCstd? I need to recompile an app switching the CC compiler and library versions from my single Solaris 9 development SunBlade.

I greatly appreciate any advice.

Joe

[706 byte] By [dj-joek] at [2007-11-26 10:55:20]
# 1

You never need to access multiple versions of libCstd.so.1, or any other system library. The library updates are upward compatible; a newer library can always be used by an older program.

Each version of Sun Studio requires a mininum patch level of the C++ runtime shared libraries. Later patch levels are always OK to use.

If you distribute a C++ program, clients must usually have a version of the system libraries at least a new as the version that you used to build the program.

clamage45 at 2007-7-7 3:08:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...