a question about shared library

lrtaylor@micron.com lrtaylor@micron.com
Mon Aug 16 17:04:00 GMT 2004


Actually, the problem is probably due to the fact that he is using two
different compilers (g++ and CC) than because he's using Sun's linker.
C++ code compiled with g++ is not compatible with C++ code compiled with
Sun's compilers.  The linker you use can make a difference, but I don't
think that's your problem in this case.

Thanks,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of John Love-Jensen
Sent: Monday, August 16, 2004 5:16 AM
To: webman.li; gcc-help@gcc.gnu.org
Subject: Re: a question about shared library

Hi,

>Are libs compiled using g++ can not be linked,using SUN's linker, with
libs &
objs compiled by SUN's CC??

Correct.  Use GNU's binutil's linker "ld".

HTH,
--Eljay



More information about the Gcc-help mailing list