• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-Application with Universal Static Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-Application with Universal Static Library


  • Subject: Re: Cocoa-Application with Universal Static Library
  • From: "Justin C. Walker" <email@hidden>
  • Date: Wed, 25 Jan 2006 09:03:32 -0800


On Jan 25, 2006, at 08:28 , Daniel Vollmer wrote:

I've got a Cocoa application (Cocoa NSDocument-based App) that is set up as the (first) target of the project. This application depends on a library I've written in C. So I've set up another target (BSD Static lib) which contains the needed files (*.c & *.h). This lib is checked for the Cocoa-target (as it is needed for linking it) and also added as direct dependency.

All of this works fine in Debug mode with ZeroLink. Switching to Release, I get the following error

/usr/bin/ld: warning /Users/maven/Development/Xcode/Kompressor/ build/Release/libwavelet.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
/usr/bin/ld: Undefined symbols:
[bunch of symbols from the library]


Is this a bug? Am I doing something wrong?

This certainly seems to be a FAQ. Check the archives for this error ("does not match cputype") and follow the links there.


Regards,

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cocoa-Application with Universal Static Library (From: Daniel Vollmer <email@hidden>)

  • Prev by Date: Re: Can't fork a new process to execute "Resource temporarily unavailable"
  • Next by Date: Re: Linking debug/release app with debug/release framework?
  • Previous by thread: Cocoa-Application with Universal Static Library
  • Next by thread: Re: Cocoa-Application with Universal Static Library
  • Index(es):
    • Date
    • Thread