how can i create dylib with init function
===

I am trying to create a dylib in xcode. I can able to create dylb by choosing c/c++ Library template in Xcode.

I want to add "init" method for this dylib. I don't know how to add "init" method for dylib.

My idea is to call this "init" on runtime with the help of dlopen().


Thanks for your valuable feedback.
