extern void MyInitFunc(void) __attribute__ ((constructor));
extern void MyTermFunc(void) __attribute__ ((destructor));
void MyInitFunc(void)
{
printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n");
}
void MyTermFunc(void)
{
}
I put this in a .c file that is present in the main application (and not in the library or framework). It is not called according to GCC documents. Did I miss something important? This is on Xcode 3.2 on Snow Leopard.
user51511
source
share