• 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: How do I link?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I link?


  • Subject: Re: How do I link?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 28 Jun 2008 12:50:16 +0200


Le 27 juin 08 à 21:52, Brian OBrien a écrit :

Jean-Daniel Dupas wrote:
Le 27 juin 08 à 19:12, Brian OBrien a écrit :

I created an xcode project that has two targets:
1) a bsd static library
2) a bsd shell tool.
(many thanks Rua HasZard Morris)

The problem I'm having how is how do I specify that the shell tool should link against the static library?
Thinking in advance.. I'm sure the debug version of the shell tool must link against the debug version of the library and the release against the release.


If I touch the source of the static library and make the shell tool, will xcode know that there is a dependency to the library and make the library first?

Google: xcode target dependency

First result:

Defining Target Dependencies

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_02_bs_targets/chapter_31_section_3.html#/ /apple_ref/doc/uid/TP40002689-SW11


Merci Jean.. Mais dit mois... What has this got to do with linking?

You post two questions, this is the answer to your second question ("will xcode know that there is a dependency to the library and make the library first") ;-)


To link to an other target output, in the Xcode project window, find the entry for your library target's output (libFoo.a usually in the Products group), and add this item to your tool target.

Xcode will automatically uses the good library (debug for debug, release for release).


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >How do I link? (From: Brian OBrien <email@hidden>)
 >Re: How do I link? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Is it possible to set breakpoints in asm sources?
  • Next by Date: Re: [Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different?
  • Previous by thread: Re: How do I link?
  • Next by thread: can't open dynamic library
  • Index(es):
    • Date
    • Thread