This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Global constructor mangling
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: Alexy Khrabrov <alexy dot khrabrov at setup dot org>
- Cc: Simon Gittins <gittins at tabq dot com dot au>,"'gcc-help at gnu dot org'" <gcc-help at gnu dot org>
- Date: Tue, 06 Aug 2002 21:32:11 +0200
- Subject: Re: Global constructor mangling
- References: <200208061824.g76ION522546@angle.badbox.com>
- Reply-to: bjensen at fastmail dot fm
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