Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__attribute__((visibility("default")) operator new



Folk:

In gcc4, operator new() is defined in <new> as visibilty("default").

If we override operator new(), our override gets exported; our operator
new() is called by the OS... With very bad results.

Please does anyone have any ideas how to make our operator new() "hidden"?

If we set it in our source as hidden, then the compiler warns that the
attribute is ignored (since it was previously defined in <new> as "default")

Thank you in advance,

-pdc

 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.