I have been going at this for days and can't seem to get this to work.
The only function in this foo.m file is:
#import <Cocoa/Cocoa.h>
extern "C" {
int MAIN(int argc, const char *argv[]);
}
int MAIN(int argc, const char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
return NSApplicationMain(argc, argv);
}
Now according to the .xMAP file, it shows the method is not referenced. That is correct as this is called from another program after the bundle is loaded. However, in doing a 'nm' on the bundle, all the .mm and .cpp classes show up, but this ONE function is being stripped.
How do I get this to be included in the bundle?
Thanks,
Mike
MW Ron - 28 May 2004 03:25 GMT
>I have been going at this for days and can't seem to get this to work.
>
[quoted text clipped - 18 lines]
>
>How do I get this to be included in the bundle?
Did you try declaring it as static?
Ron

Signature
Metrowerks, one of the world¹s top 100 companies and influencers
in the software development industry. - SD Times May 2004
http://www.sdtimes.com/2004sdt100.htm
Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Michael L Walker - 28 May 2004 06:19 GMT
Ron,
I thought I tried that, so I tried it again.......static did not change the result. (It still was not included in the bundle)
However, I tried a #pragma force_active. This appears to work and now the function is included in the bundle.
Thanks,
Mike
>>I have been going at this for days and can't seem to get this to work.
>>
[quoted text clipped - 22 lines]
>
>Ron