Compiler error on NSAddImage call
Compiler error on NSAddImage call
- Subject: Compiler error on NSAddImage call
- From: Randy Croucher <email@hidden>
- Date: Wed, 5 Nov 2003 10:28:39 -0800
I am trying my luck at coming over to XCode from CodeWarrior. I can't
seem to get the following line of code to compile.
const mach_header *mh = NSAddImage( "Hello",
NSADDIMAGE_OPTION_RETURN_ON_ERROR );
I get the following compiler error:
main.c:6: error: syntax error before '*' token
I put this line in a simple new app's main() function, included
<mach-o/dyld.h> and it still does not seem to know what a mach_header
is. The mach_header structure is defined in <mach-0/loader.h> which is
included from dyld.h. It doesn't matter if I include loader.h or not.
This code compiled just fine under CW. Any ideas what I might be
missing?
Thanks,
Randy Croucher
_______________________________________________
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.