I'm completely new to C, and I don't know how to create a library using Xcode. Could anyone help me out?
I'm completely new to C, and I don't know how to create a library using Xcode. Could anyone help me out?
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.
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
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.
"...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
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.