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: linking in static libraries under xcode?



What?!?!?!!?

No, Xcode can use static archives just fine.
1) For your tool target "reader", add a "Frameworks and Libraries" phase if it doesn't have one already. Project > New Build Phase > New Frameworks and Libraries Phase
2) Add the library. Projects > Add Frameworks... Navigate to your static archive. Add it to the appropriate targets via checkboxes
3) If you later need to add it to other targets, drag the reference in your project hierarchy to the appropriate "Frameworks and Libraries" phase

This question is more appropriate for one of Apple's Xcode lists.

Shantonu

On Feb 4, 2004, at 11:14 PM, Bill Northcott wrote:

From: Ken Hawkins <email@hidden>
Subject: linking in static libraries under xcode?
Date: Wed, 4 Feb 2004 10:19:29 -0800

i have 2 static libs that are built in the same project libx and liby.
however i cannot get link them into my BSD shell target "reader".

i see under the info where i can call out the library style as static
however i cannot see where i can put in the -lx -ly args in to the
build. i tried under other linker flags however this did not work. can
anyone help out here?

I futzed around with something like this recently.

As far as I can see Apple expects all object files in one project to be linked in at once, not as is often done with makefile projects where objects are archived into 'static' libraries and then those are given as arguments to ld.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: linking in static libraries under xcode? (From: Bill Northcott <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.