link a library compiled with SC 5.9 on a machine with SC5.8

Is it possible to link a library compiled on Solaris 10 with SunCompiler 5.9 in a project compiled with SC 5.8 ?

Is there an option to "downgrade" the SC5.9 => SC5.8 to be sure of the compatibility ?

Thanks 4 your help

I would not do it that way, remember the code compiled on a later platform will be linking against later include files and later libraries.

Code compiled on 5.8 should run on 5.9 and 5.10, but not the otherway round.

Doing what you want would actually count as a cross-compile because you would need to get a copy of the 5.8 libraries and headers, and recompile making sure you compiled and linked against those and did not use any default /usr/include or /usr/lib.

I believe you can fake a library to an earlier release with the elfedit command which appeared in Solaris Express build 75.

elfedit(1)

Of course, there is a slight risk in doing so.