Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2004



Tip: Looking for answers? Try searching our database.

Bundle Methods Are Stripped

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael L Walker - 28 May 2004 01:34 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.