Incompatiblity of the code due to CC compiler version mismatch.
I have a machine with
Machine A-- Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8)
CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07
we have compiled C++ code, generated .so files are working fine on the Machine C --
Machine C)Operating System:5.10 Generic_147440-03 sun4v sparc sun4v(Solaris 5.10)
Machine B -- Operating System:5.8 Generic_Virtual sun4v sparc sun4v
CC Compiler:CC:CC: Sun C++ 5.8 2005/10/13
we have compiled C++ code, generated .so files are not working fine on the Machine C
Machine C -- Operating System:5.10 Generic_147440-03 sun4v sparc sun4v(Solaris 5.10)
I would like to know
1\) If the code compiled with compiler on Machine A is compatable on Machine C.why the code compiled on Machine B incompatable on Machine C.
2\)Machine A and Machine B are with the same SunOs 5.8 version but with a different CC compiler version.we suspect the CC compiler version mismatch on the machines A and B is the cause of the problem.
Expecting solution so that we could able to run the code on Machine C with the compiler available in Market\(WorkShop Compilers 4.2 16 Jun 1998 C\+\+ 4.2 patch 104631-07 was not found\)
any solution to the problem is helpful and appreciable.Thanks in advance.
Regards,
Revathi