Some help?

Discussion in 'Mac Programming' started by Soulstorm, Feb 1, 2005.

  1. Soulstorm macrumors 68000


    Feb 1, 2005
    I am new to programming. I only know how to use applescript but at least in that I am good. But now, I want to get involved with C. And what I need is just a program to write the code and compile it. I don't want any fancy things, just a plain text editor that can compile C in OS X. I am using OS X 10.3 and I haven't find any program to do that yet.

    Do you have any recommendations? I would like the programs that you mention here to be freeware, or at least shareware, because in greece it is difficult to order any program (like codewarrior for example).

    Can Virtual PC help me at this one?

    Edit: I tried google search but didn't work. Also, i am considering developer tools by apple, but I don't think that developper tools are for beginners like me.

    Thank you in advance.
  2. widgetman macrumors member

    Oct 7, 2004
    by the way, this thread has come up multiple times.

    the editor of choice would probably be XCode, unless you want something more C-specific. It is available at in the developer downloads section. (you have to log in or register to get it).

    good luck!
  3. Logik macrumors 6502a

    Apr 24, 2004
    i will second this...

    otherwise, install xcode (since it installs GCC).. command line.. "gcc inputfiles -o output file"

    for simple stuff that will do it for ya

    xcode is probably a better choice since it also includes a debugger that let's you easily find problems.. give it a shot
  4. Soulstorm thread starter macrumors 68000


    Feb 1, 2005
    Yeah, I know, i had some problem with my browser and i hit the button "submit" many times... sorry about that.

    As for xCode, i will give it a shot, but i don't know how to configure it for me to write simple C language... For example, after creating the new project, it asks what type of document you want. What do I do from there, and what files do I edit? (yeah, i'm a bit annoying but do not forget, i am a beginner!)

    Thanks, anyway!
  5. widgetman macrumors member

    Oct 7, 2004
    if you are into C, then make a new "Carbon Bundle" in XCode. C is great, but i really suggest getting into Cococa (Objective-C). Cocoa is WAY easier and just as powerful since you can use C, and C++ in the same project without doing anything special. I suggest checking out MacDevCenter and clicking on "Cocoa Programming in the left list of links under "Content". Scroll to the bottom of the next page that loads and look at the first few tutorials. Those are especially good for getting your bearings in Cocoa, and they even got me started. Highly recommended for all beginners.
  6. Soulstorm thread starter macrumors 68000


    Feb 1, 2005
    I would like to know more about C first before I move into C++ and start developping Cocoa applications. I don't know anything about making good apps using C yet, how can I begin to involve myself with C++? I need more experience in this I think, although I don't know how more complex is C++ compared to C.
  7. widgetman macrumors member

    Oct 7, 2004
    in my experience, C++ is much easier to grasp as a beginner than plain old C, but you'll have to be the jugde of that. I recommend either getting a book or finding a solid online tutorial for beginners.
  8. netytan macrumors 6502


    May 23, 2004
    You should already have the Developers tools, either on a separate CD if your bought OS X from Apple or in the /Applications/Installers/Xcode Tools/ directory if you're using the installation CD that came with your Mac.

    Note: this version is a little behind now (The current version is 1.5) however it should work fine :).

    I would suggest Java or Objective-C instead of C++ when you’re done with C since they are the preferred languages for development on OS X.

    Hope this helps,


Share This Page