Re: Object code missing from .a file
Re: Object code missing from .a file
- Subject: Re: Object code missing from .a file
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 23 Mar 2004 18:20:23 -0700
On Mar 23, 2004, at 4:07 PM, Andrew Duncan wrote:
I'm building a conventional static library, but it seems to be missing
code that is being compiled by Xcode. That is,
[...]
- Running otool on the .a file does not show MyClass.o.
- Running nm and looking for MyClass's methods also comes up empty.
These don't surprise me in the least bit, because Mac OS X uses an
archive format called "ar" for static libraries, rather than the Mach-O
ABI used for shared libraries etc. And otool only understands Mach-O.
I'm not sure why your problem is occurring yet, but let me suggest that
you try dissecting the static library using the "ar" command line
program, which you can read about in the ar(1) man page.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request
UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.