From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2735 invoked by alias); 16 Dec 2007 08:20:57 -0000 Received: (qmail 2727 invoked by uid 22791); 16 Dec 2007 08:20:57 -0000 X-Spam-Check-By: sourceware.org Received: from n8a.bullet.ukl.yahoo.com (HELO n8a.bullet.ukl.yahoo.com) (217.146.183.156) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 16 Dec 2007 08:20:49 +0000 Received: from [217.12.4.214] by n8.bullet.ukl.yahoo.com with NNFMP; 16 Dec 2007 08:20:46 -0000 Received: from [216.252.122.219] by t1.bullet.ukl.yahoo.com with NNFMP; 16 Dec 2007 08:20:46 -0000 Received: from [69.147.65.165] by t4.bullet.sp1.yahoo.com with NNFMP; 16 Dec 2007 08:20:46 -0000 Received: from [127.0.0.1] by omp500.mail.sp1.yahoo.com with NNFMP; 16 Dec 2007 08:20:46 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 399406.88046.bm@omp500.mail.sp1.yahoo.com Received: (qmail 26271 invoked by uid 60001); 16 Dec 2007 08:20:46 -0000 X-YMail-OSG: Goff2UUVM1n7Y17YiGNo9m6p1pt0H01eGJpcakLJ2z.yXpGosAkDt1oYRSkCQ_Fm1.P.Hp5OYn7zMCkhe2rHRIc0OCEZFJdsmwt_ Received: from [71.58.215.254] by web46015.mail.sp1.yahoo.com via HTTP; Sun, 16 Dec 2007 00:20:45 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.158.1 Date: Sun, 16 Dec 2007 08:20:00 -0000 From: Kumar Bhaskar Subject: Sub lib compatibility with g++ To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <131146.25616.qm@web46015.mail.sp1.yahoo.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00289.txt.bz2 Hello I am trying to make use of a 3rd party archive C++ library that was compiled with Sun compiler. This is evident from the some of the name mangling that I can see within the .o files. I do not have the source code for this lib. I am using my C++ program to call into this library but my code is being compiled with gcc/g++. Clearly my program doesn't link successfully with the 3rd party lib. (due to diffferences in name mangling) I understand that gcc C++ and Sun Studio C++ are not ABI compatible, but was wondering if there is anything at all I can do to get around this problem, short of requesting for a gcc compiled 3rd party lib and/or I having to change my compiler to Sun Studio. I have access to the sun compiler and sun C++ runtime. For instance - Is it possible to set some options to gcc to indicate - make use of the Sun name mangling style ? Would greatly appreciate some help, even if there is no way to do this. I can then pursue other means of using this 3rd party lib - so in that regard want to be able to rule out that I cannot use the gcc/g++ compiler. Thanks ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping