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]
Other format: [Raw text]

Re: Global constructor mangling


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


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