• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: __attribute__((visibility("default")) operator new - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: resolving backtraces created on Intel when working on PowerPC
  • Next by Date: Re: What changes to the project does it want to save?
  • Previous by thread: Re: What is "Creator" 4 bytes used for?
  • Next by thread: failed compile: "no input files"
  • Index(es):
    • Date
    • Thread