Programming with C in Mac OSX Terminal

This is a discussion on Programming with C in Mac OSX Terminal within the C Programming forums, part of the General Programming Boards category; Hello, I just got a new macbook and I was interested in getting back into programming with c again. I ...

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    1

    Programming with C in Mac OSX Terminal

    Hello,

    I just got a new macbook and I was interested in getting back into programming with c again. I took a c programming class couple years back at my school but I forgot almost everything now. I bet it will come back quick though.

    Anyways can someone help me get setup. I know using the terminal you can program in c but I'm not sure quite how. Do I need to download a compiler? Can someone guide me through simple steps to get started, maybe write a simple program to print "Hello World" and then compile and execute that would be extremely helpful.

    Ok thanks
    -Feroze

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by feroze View Post
    Do I need to download a compiler?
    YES!

    Until then, do not pass go.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    Install the developer tools on the os disk. That includes Xcode and alot of other stuff as well as gcc.
    Last edited by Subsonics; 02-21-2009 at 06:26 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to Send Mac Address From Client to Server
    By Lieyza197 in forum C Programming
    Replies: 2
    Last Post: 05-27-2009, 09:58 AM
  2. Compiling a program for Mac OSX from a windows computer
    By Jedi Nescioquis in forum Windows Programming
    Replies: 1
    Last Post: 02-13-2009, 02:06 PM
  3. GCC with MAC Terminal
    By dcwang3 in forum Linux Programming
    Replies: 8
    Last Post: 08-28-2008, 01:05 PM
  4. pausing screen in mac osx
    By hostensteffa in forum C++ Programming
    Replies: 1
    Last Post: 10-23-2005, 01:54 AM
  5. Programming Objective C in Mac OSX
    By MacUser in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-17-2002, 08:12 AM

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