I'm not entirely sure what you're trying to prove here. #pragma
CALL_ON_LOAD
et.al. are deprecated on Mac OS X 10.4, in favor of gcc's
__attribute__((constructor)) and __attribute__((destructor))
<http://developer.apple.com/releasenotes/DeveloperTools/dyld.html>.
C++ constructors and destructors work better in 10.4, and the
problems with
c++ on 10.3.x and earlier were, I believe, one of the main reasons
for the
rewrite of dyld.
I prefaced my response with the statement that my test apps were
written with CW.
Regarding the usefulness of my post, the main point is that there
are differences
in the way that bundles, dylibs and frameworks are loaded and
unloaded, and
if one is assuming a certain behaviour it might be wise to printf/
trace the
actual behaviour and compare it with one's assumptions.
I can't say I've ever actually used these but from <mach-o/dyld.h>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden
This email sent to email@hidden