Thread: Creating a library in C using Xcode 4.6

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    3

    Question Creating a library in C using Xcode 4.6

    I'm completely new to C, and I don't know how to create a library using Xcode. Could anyone help me out?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Could anyone help me out?

    How about learning some actual C to begin with, before rushing headlong into creating a library.

    Sure, you'll end up knowing 'how' to create a library using a couple of easy commands, but you'll still be clueless as to what to put in the library.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    A library is a collection of functions, so Step 1 is to learn enough C to write one or more functions. Step 2, read an article about creating libraries on Xcode. This one appears to be good:

    How to create universal static libraries on Xcode 4: the traditional way | boreal-kiss.net

  4. #4
    Registered User
    Join Date
    Feb 2013
    Posts
    3
    Why do you assume I don't know any C? I've got the basics down, and writing functions is one of the first things to learn in any language. Thanks for the link, C99tutorial. That solves my problem.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by verandaguy View Post
    Why do you assume I don't know any C? I've got the basics down, and writing functions is one of the first things to learn in any language. Thanks for the link, C99tutorial. That solves my problem.
    Quote Originally Posted by verandaguy View Post
    I'm completely new to C, and I don't know how to create a library using Xcode. Could anyone help me out?
    Read what you wrote.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #6
    Registered User
    Join Date
    Feb 2013
    Posts
    3
    I used "completely new" a bit loosely. I have been working with C for about two weeks, and know how to write moderately complex command-line tools based in small part off my knowledge of C++. Given that there are many differences between C and C++, I was unsure whether libraries in C had the same structure, file type, etc. as C++ libraries.

    Hope this clears up any ambiguity.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating Library
    By juice in forum C Programming
    Replies: 1
    Last Post: 11-29-2011, 12:37 PM
  2. Creating a custom library
    By officedog in forum C Programming
    Replies: 3
    Last Post: 11-11-2008, 10:33 AM
  3. creating a c library
    By elton_fan in forum C Programming
    Replies: 3
    Last Post: 04-09-2007, 05:07 PM
  4. Creating my own library
    By gozlan in forum C Programming
    Replies: 8
    Last Post: 10-14-2002, 11:11 PM
  5. Creating extra library
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 03-28-2002, 06:48 PM

Tags for this Thread