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
|