re: How to specify Initialization Routine
re: How to specify Initialization Routine
- Subject: re: How to specify Initialization Routine
- From: George Warner <email@hidden>
- Date: Fri, 20 Aug 2004 17:43:10 -0700
On Fri, 20 Aug 2004 11:06:01 +0530, Manoj Tyagi <email@hidden> wrote:
> I have imported one bundle from Code Warrior 8.x to XCode 1.5 and built.
> Although I got no errors but when I looked at the warnings, it says
>
> ld: warning flag: -init CallBackFunc ignored (-dylib was not specified).
>
> id: warning specified initialization routine symbol name ignored, output
> file type has no initialization routine.
>
> CallBackFunc is the name of the function which I specified in Initialization
> Routine option of Target setting.
>
> Please guide me about the correct target settings including where to put
> -dylib so that my bundle gets built with CallBackFunc as my initialization
> routine.
#pragma CALL_ON_LOAD my_mod_init_func
static void my_mod_init_func(void)
{
/* do my init stuff */
}
#pragma CALL_ON_UNLOAD my_mod_term_func
static void my_mod_term_func(void)
{
/* do my termination stuff */
}
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.