Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

It's not that easy



I gave the GNU-thing up. It was too difficult. So I tried to compile my app as a universal binary, not to bring my app on a linux machine to work, but on a Intel-Based Mac. The time will come, that the first Mactel Computers are for selling and so I thought I spend my time better for this problem.  But, what I got are many errors and warnings.
What suprised me most, that simple classes like NSNumber are not recognized! What can I do? Do I miss something for compiling for i386 architecture?

Ludwig Villiger
/usr/bin/ld: warning /System/Library/Frameworks/Cocoa.framework/Cocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning /System/Library/Frameworks/AppKit.framework/AppKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning /System/Library/Frameworks/Foundation.framework/Foundation cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning fat file: /usr/lib/gcc/i686-apple-darwin8/4.0.0/../../../libmx.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: warning fat file: /usr/lib/gcc/i686-apple-darwin8/4.0.0/../../../libSystem.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
/usr/bin/ld: Undefined symbols:
___keymgr_dwarf2_register_sections
__cthread_init_routine
_atexit
_errno
_exit
_mach_init_routine
_NSApplicationMain
.objc_class_name_NSBundle
.objc_class_name_NSCharacterSet
.objc_class_name_NSConstantString
.objc_class_name_NSImage
.objc_class_name_NSMutableDictionary
.objc_class_name_NSNib
.objc_class_name_NSNumber
.objc_class_name_NSObject
.objc_class_name_NSSet
.objc_class_name_NSString
__NSConstantStringClassReference
_objc_msgSend
_objc_msgSendSuper
_random
_srandomdev
collect2: ld returned 1 exit status

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Student-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/student-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.