This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: a question about shared library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]