• 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: Xcode: ANSI C and libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode: ANSI C and libraries


  • Subject: Re: Xcode: ANSI C and libraries
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 11 Sep 2011 16:00:43 -0700


On Sep 11, 2011, at 2:27 PM, Software Engineer wrote:

Is it possible to create ANSI C projects in Xcode and configure these as either a console program or a static library ?


Yes.

The exact sequence of commands will vary a little bit depending on the version of Xcode.

For a static library

(1) File->New Project...
(2) Click "Framework & Library" in left column
(3) Click "BSD C Library" in the main window
(4) Click "Next"
(5) Enter a "Product Name"
(6) for Type, choose "Static"
(7) Click "Next"


The steps for a console app are nearly the same:

(1) File->New Project...
(2) Click "Applications" in left column
(3) Click "Command Line Tool" in the main window
(4) Click "Next"
(5) Enter a "Product Name"
(6) For Type, choose "C"

In Xcode 4 the build products (e.g., library or application) are put in some crazy location under your ~/Library directory. There are a couple of ways of finding it when you get to that point.

Todd

 _______________________________________________
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: 
 >Xcode: ANSI C and libraries (From: Software Engineer <email@hidden>)

  • Prev by Date: Re: Multiple xcodes
  • Next by Date: Re: Block variable syntax related question
  • Previous by thread: Xcode: ANSI C and libraries
  • Next by thread: Xcode4.1 Memory Problem while code Indexing in c++
  • Index(es):
    • Date
    • Thread