Mailing Lists: Apple Mailing Lists

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

Re: How do I link?




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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>)



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.