Creating a library in C using Xcode 4.6

This is a discussion on Creating a library in C using Xcode 4.6 within the C Programming forums, part of the General Programming Boards category; I'm completely new to C, and I don't know how to create a library using Xcode. Could anyone help me ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    978
    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
    2,370
    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.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  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, 11:37 AM
  2. Creating a custom library
    By officedog in forum C Programming
    Replies: 3
    Last Post: 11-11-2008, 09: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, 05:48 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21