Problem linking in a GNU C++ lib with Sun compiler
Frank Schafer
frank.schafer@setuza.cz
Tue Oct 16 21:10:00 GMT 2001
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)
More information about the Gcc-help
mailing list