• 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: beginning C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: beginning C


  • Subject: Re: beginning C
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 3 Aug 2003 02:13:11 -0700

On Sunday, August 3, 2003, at 1:49 AM, David Thorp wrote:

I went to the bookshop today to see if I could find any of those books you all recommended. The only one I could find (on a Sunday in Brisbane Australia) that any of you recommended is "SAMS Teach Yourself C in 24 hours". by Tony Zhang. Looks good and I'm ready to start writing my first C program! :-D

You might want to look at Seth Roby's recent article, the first in what promises to be a very useful series:
<http://www.macdevcenter.com/pub/a/mac/2003/07/22/cocoa_series.html>

Problem is, it's written for Windows and has all the instructions for Microsoft's and Borland's C compilers, but of course I want to do it on my Mac!
I think I understand that I can write the code in any plain text document (Do I have to use vi or can I do it in TextEdit or the like?). Once I've done that though, can anyone tell me the basics of compiling said text files?

You can use any text editor you wish, provided it outputs "plain text". If you use TextEdit, for example, ensure you don't save your file as RTF.

To compile files at the commandline, you can use cc (type "cc --help" to get started). Alternatively, you might consider leaping straight in with an IDE, like Project Builder or Xcode. These will simplify the task of organising all your files etc. In Xcode, you can simply create a new project of type "Standard Tool" (scroll all the way to the bottom of the list of project types) and edit the main.c file it creates for you...

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: beginning C
      • From: The Amazing Llama <email@hidden>
References: 
 >beginning C (From: David Thorp <email@hidden>)

  • Prev by Date: Re: beginning C part 2
  • Next by Date: Re: beginning C part 2
  • Previous by thread: beginning C
  • Next by thread: Re: beginning C
  • Index(es):
    • Date
    • Thread