Overloaded delete statement in dylib replaces system operator in OSX

I have a dylib written in C ++ that has overloaded operator new and delete .

When linking my cocoa application with my dylib, I have BAD_ACCESS_ERROR , because cocoa is trying to free memory using my operator delete from my dylib.

So, I think I can use the unexported_symbols_list options, but what are the decorated names for operator delete, delete[], new, new[], new(..) ?

+4
source share
1 answer

You can use the nm tool to extract the exported characters from your lib and c++filt , then to untie it and find which ones match the specified operations.

+1
source

All Articles