Anonymous user
C++: Difference between revisions
Jump to navigation
Jump to search
→Enabling global objects
[unchecked revision] | [unchecked revision] |
Line 64:
</source>
Such that, as explained above, <tt>'destructor_func'</tt> is the handle for a destructor function, <tt>'arg'</tt> as defined by the ABI is the single argument it may take, and <tt>__dso_handle</tt> is a handle for the DSO (Dynamic Shared Object).
In summary: the Itanium C++ ABI requires that you define two functions, and one symbol:
<source lang="cpp">
int __cxa_atexit(void (*f)(void *), void *objptr, void *dso);
void __cxa_finalize(void *f);
void *__dso_handle
</source>
Before you can define global objects in your C++ files.
=====GCC (version < 3.2)=====
|