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@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of John Love-Jensen Sent: Monday, August 16, 2004 5:16 AM To: webman.li; gcc-help@xxxxxxxxxxx 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