Mailing Lists: Apple Mailing Lists

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

Unable to compile in release mode.



Until recently I was able to compile my application just fine, but since today (could have been since 10.4.6) I get the following error when I build using the Release configuration. The Debug configuration still builds perfectly.

Any suggestions ?

Ld /Users/alex/Projects/AddressBook4LDAP/build/AddressBook4LDAP.build/ Release/AddressBook4LDAP.build/Objects-normal/i386/AddressBook4LDAP normal i386
cd /Users/alex/Projects/AddressBook4LDAP
/usr/bin/gcc-4.0 -o /Users/alex/Projects/AddressBook4LDAP/build/ AddressBook4LDAP.build/Release/AddressBook4LDAP.build/Objects-normal/ i386/AddressBook4LDAP -L/Users/alex/Projects/AddressBook4LDAP/build/ Release -F/Users/alex/Projects/AddressBook4LDAP/build/Release - filelist /Users/alex/Projects/AddressBook4LDAP/build/ AddressBook4LDAP.build/Release/AddressBook4LDAP.build/Objects-normal/ i386/AddressBook4LDAP.LinkFileList -framework Cocoa -framework Security -framework LDAP -arch i386
/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/Security.framework/ Security cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/bin/ld: warning /System/Library/Frameworks/LDAP.framework/LDAP 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.1/../../../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
.objc_class_name_NSBundle
.objc_class_name_NSDictionary
.objc_class_name_NSMutableDictionary
.objc_class_name_NSString
.objc_class_name_NSValueTransformer
_NSLog
_NSStringFromClass
___CFConstantStringClassReference
_objc_msgSend
_objc_msgSendSuper
.objc_class_name_NSApplication
.objc_class_name_NSMutableArray
.objc_class_name_NSObject
.objc_class_name_NSURL
.objc_class_name_NSWorkspace
....
....
collect2: ld returned 1 exit status



Alexander Hartner email@hidden

Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
  - The Tao of Programming


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-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.