C compiler for Terminal

Discussion in 'Macintosh' started by Techno Child, Mar 30, 2006.

  1. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    Hey everyone.. I'm back,

    Does anyone know how to set up a c compiler on mac? I guess it would probably run through terminal but i have no idea... It would be nice to not have to jump back and forth between pc/mac with my jumpdrive for little programs :D

    Thanx
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Just plain old GCC is installed, which is available from gcc, and for C++ as g++.

    man gcc
    man c++

    Enjoy.
     
  3. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    ok.. now how do you use it? i'm new to programming on a mac... i tried
    Code:
    gcc untitled.c
    and it doesn't recognize the gcc command....
     
  4. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Ah, you need to install the development packages, which includes Xcode, then you will have gcc and others available.
     
  5. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    ok... Xcode... someone mentioned that before... the problem is that i am running osX 3.9 and it requires xcode v 1.5 the current version on apple's website is 2.2 , which requires tiger... have any idea as to where 1.5 can be downloaded?


    i already tried several mac websites/google search and they all are upgraded to v 2.2 and even the ones that say 1.5 are 2.2 when i start downloading it... I also checked my cds that came with my mac... they do not have xcode because the cds are the factory restore disks, not a fresh install...


    can gcc be downloaded by itself?
     
  6. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Xcode is on your Mac OS X installation DVD, and no you can't just download gcc for Mac OS X.

    Upgrade to Tiger when you get the chance :p
     
    Techno Child likes this.
  7. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    kk... thanks
     
  8. cybershrikee

    cybershrikee OSNN One Post Wonder

    Messages:
    3
  9. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    thanks, but that is only for tiger :( i'm going to have to prolly upgrade
     
  10. cybershrikee

    cybershrikee OSNN One Post Wonder

    Messages:
    3
    ahhh, sorry, didn't read the thread properly, my mistake! Your best bet will be *cough*p2p*cough*
     
  11. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    lol ... i don't want a more spyware on my comp...
     
  12. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Old Xcodes are not arround on p2p, first, because people can freely download it from Apple, two, because almost all developers have simply upgraded to the newer Mac OS X.
     
  13. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    rub it in x-istence, rub it in:yowch:
     
  14. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I might have a copy of xcode 1.5 on a cd somewhere. If i find it I will upload it somewhere and let you know.
     
  15. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    That would be awesome!
     
  16. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I have searched pretty much high and low for it, but its not here with me at Uni. I am going home in a couple of days will see if I can dig the CD out there.
     
  17. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    good luck :D
     
  18. Techno Child

    Techno Child web{designer} Folding Team

    Messages:
    871
    Location:
    Myrtle Beach
    ..finally found this thread..
    If anyone is looking for previous versions of Xcode, a guy from apple just told me that you can access all previous releases through your developer's account which is also free.

    -tc