This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: debug evaluator is faster than regular one?
31-Jul-00 16:02 you wrote:
> Mark Galassi <rosalia@galassi.org> writes:
>> Jost> Hmm, does that mean that on some systems a library created
>> Jost> with gcc can't be linked into an executable created with the
>> Jost> native compiler?
>>
>> I think that is always the case with C++ code.
> Why?
Name mangling :-/ When you have, for examples
-- some-math-file.h --
double abs(double);
int abs(int);
complex abs(complex);
-- cut --
you need three names for linker. So in .o files you'll have something symbols
like abs_Fd, abs_Fi, abs_Fc_complex and linker will not see duplicated names.
This name mangling is sometimes different even in different versions of GNU C++
let alone compilers from different vendors.