Re: __attribute__((visibility("default")) operator new - SOLVED
Re: __attribute__((visibility("default")) operator new - SOLVED
- Subject: Re: __attribute__((visibility("default")) operator new - SOLVED
- From: Paul Carnine <email@hidden>
- Date: Mon, 23 Jan 2006 18:01:12 +0100
Thank you, Howard. This helped us down the path quite a bit.
For those of you who may hit this in the future, we didn't actually use the
method Howard suggested. The reason is that we could not get this to work
with ZeroLink, which we are addicted to.
To solve that, we took a completely different tact in an "always included"
header file:
inline void* operator new(size_t size) __attribute__((always_inline));
inline void* operator new(size_t size)
{
return zMemCheck_New_Block(size);
}
...
Which effectively "hides" our overrides in another way.
-pdc
---
>> Please does anyone have any ideas how to make our operator new()
>> "hidden"?
>
> You can list a file such as unexported.exp in your "Unexported
> Symbols File". That file should contain:
>
> __Znwm
> __Znwm.eh
> __ZdlPv
> __ZdlPv.eh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden