From: Kumar Bhaskar <akumargolf2000@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Sub lib compatibility with g++
Date: Sun, 16 Dec 2007 08:20:00 -0000 [thread overview]
Message-ID: <131146.25616.qm@web46015.mail.sp1.yahoo.com> (raw)
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
next reply other threads:[~2007-12-16 8:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-16 8:20 Kumar Bhaskar [this message]
2007-12-16 14:18 ` John (Eljay) Love-Jensen
2007-12-16 23:52 Kumar Bhaskar
2007-12-17 0:24 ` John (Eljay) Love-Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=131146.25616.qm@web46015.mail.sp1.yahoo.com \
--to=akumargolf2000@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).