Global constructor mangling
bjorn rohde jensen
bjensen@fastmail.fm
Tue Aug 6 12:32:00 GMT 2002
Hi Alexy,
Part of the idea behind name mangling is to
protect against accidentally linking incompatible
object files together, so it is certainly best, if
you make sure, you are using C++ object files
generated by 1 and only 1 compiler. Plain C code is
more forgiving, so you probably dont need to
recompile the entire distributions system libraries,
which really would be a pain;) This is my experience
at least.
One can not take successful linkage as a guarantee
of much besides no unresolved symbols, just like
successful compilation does not ensure code sanity:)
Yours sincerely,
Bjorn
More information about the Gcc-help
mailing list