DYLIB entry point

Hello guys, I am new in Mac, I was trying to find answers for my questions in official Mac docs,... but I could not...

1. Does DYLIB file contain entry point like DLL's WinMain?

2. Where can I find does about DYLIB loading into memory?

Thanks,
Dymytriy.

Mac, Mac OS X (10.5.8)

Posted on Jun 4, 2010 6:27 AM

Reply
1 reply

Jun 5, 2010 10:37 AM in response to Dymytriy

Dymytriy wrote:
Hello guys, I am new in Mac, I was trying to find answers for my questions in official Mac docs,... but I could not...

1. Does DYLIB file contain entry point like DLL's WinMain?


DllMain is what you are thinking of and yes ...

_attribute_((constructor)) void foobar()
{
...
}


2. Where can I find does about DYLIB loading into memory?


http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/D ynamicLibraries/000-Introduction/Introduction.html#//apple_ref/doc/uid/TP4000190 8-SW1


Thanks,

You're welcome.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

DYLIB entry point

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.