This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem linking in a GNU C++ lib with Sun compiler
- To: Frank Geck <fgeck at att dot net>
- Subject: Re: Problem linking in a GNU C++ lib with Sun compiler
- From: Frank Schafer <frank dot schafer at setuza dot cz>
- Date: Wed, 17 Oct 2001 06:26:19 +0200
- CC: Gnu Help desk <gcc-help at gcc dot gnu dot org>
- Organization: SETUZA a.s.
- References: <3BCC6AA9.F3CD1E83@att.net>
- Reply-To: frank dot schafer at setuza dot cz
Frank Geck wrote:
> > I'm having a problem compiling using the Sun workshop compiler when
> > linking in a library that was compiled using GNU g++. I'm getting
> > undefined symbols for most everything that I call in that library from
> > my program. My thought is that it has to do with name mangling
> > differences between the compilers but I'm not sure and I don't know how
> > to fix it. Any thoughts?
> >
> > Thanks,
> >
> > Frank
Yes, every compiler does it's OWN name mangeling. You can fix this:
a: ) using `` extern C'' ( do NOT name mangle )
b: ) compiling everything with the same compiler
Regards
Frank ( too :o)
begin:vcard
n:Schafer;Frank
x-mozilla-html:FALSE
org:SETUZA a.s.;IT
adr:;;;;;;
version:2.1
email;internet:frank.schafer@setuza.cz
title:Dipl. Ing.
note:System administrator
x-mozilla-cpt:;0
fn:Frank Schafer
end:vcard