This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ vs CC solaris compile
- To: Nevenka Bierny <NBierny at quova dot com>
- Subject: Re: g++ vs CC solaris compile
- From: Albert Chin-A-Young <china at thewrittenword dot com>
- Date: Wed, 6 Jun 2001 04:25:09 -0500
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- References: <DB91BC27B91BD411B598009027E59F70678481@exchangehq.quova.com>
- Reply-To: gcc at gcc dot gnu dot org
On Tue, Jun 05, 2001 at 06:40:14PM -0700, Nevenka Bierny wrote:
> I'm trying to compile code with CC on solaris, linking to a library compiled
> with g++. This is so that our customers can use either g++ or CC to compile
> their code given the library we send them. The compile is fine, but the
> code core dumps when I run it.
>
> How can I find out what the compilers compile differently?
I don't think you can do what you want. The ABI the compilers use for
the libraries is different. As far as I know, I don't think you can
mix C++ libraries compiled on *any* two compilers.
So, You'll have to provide two different libraries, one for G++ and
one for CC. And, make sure that different versions of CC can handle
the same library :)
--
albert chin (china@thewrittenword.com)