This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __cxa_atexit question
Ulrich Drepper wrote:
> Mark Mitchell wrote:
>> I do take your point about interoperation with C code. However, on many
>> of these systems, if you link with a C++ runtime library that defines
>> atexit, then the C code in your application will call that version of
>> atexit as well.
>
> And how do you imagine this magically happens?
Many of these systems use static linking, and there the compiler driver
puts the C++ runtime before the C runtime library.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713