This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem linking in a GNU C++ lib with Sun compiler


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]