Sub lib compatibility with g++
\ Kumar Bhaskar (16 Dec 2007)
. \ John (Eljay) Love-Jensen (16 Dec 2007)
. \ Kumar Bhaskar (16 Dec 2007)
. . \ John (Eljay) Love-Jensen (17 Dec 2007)

3 msgBuild compiler for maximum debugging (-g -O0)
3 msgCompiling expressions
1 msgCannot Install GCC
3 msgcrosscompiler for ia64
2 msgprofiling question
9 msggFortran problem compiling complex character st...
4 msgdisplay all test output
1 msgerror of building gcc4.2.1 on ubuntu7.04, i86.
3 msgClarification on mcpu/tune/arch options
1 msgWarning from GCC 4.2.x about qualifiers being d...
4 msgHow to assign which symbols/functions to export...
2 msgI can not compile under Ubuntu with gcc 3.3... (?)
4 msgmixing objects of gcc 3.2.3 and gcc 4.1.2
1 msgHow to turn off adress 0 on AIX?
1 msg[new user] gcc from command line versus makefile
1 msggcov compiles ICE on gcc-4.1.2
17 msgShould I be able to build cross gcc 4.x on Cygwin?
5 msgproblem building gcc on ia64-hpux machine
2 msgast in gcj
Subject:Sub lib compatibility with g++
Group:Gcc-help
From:Kumar Bhaskar
Date:16 Dec 2007


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



© 2004-2008 readlist.com