__cxa_atexit question

Mark Mitchell mark@codesourcery.com
Thu May 18 07:45:00 GMT 2006


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



More information about the Libstdc++ mailing list