Results 1 to 7 of 7
  1. #1


    Member Since
    Apr 16, 2009
    Posts
    2
    How to install C / C++ compiler?
    Hello

    Is there a guide somewhere on how to install a C / C++ compiler?

    I am using the Eclipse IDE.


    Thanks in advance

  2. #2


    Member Since
    Jul 27, 2006
    Location
    Berkshire, Uk
    Posts
    394
    Specs:
    15.4" MBP Sep 09, 2.66Ghz C2D, 4Gb Ram, 320Gb HDD 7200rpm, 10.6.x / iPod Touch 8Gb
    Just install xCode to compile Tools - Xcode

  3. #3


    Member Since
    Apr 16, 2009
    Posts
    2
    Thanks, is there anything i need to do to get it working from the cli?
    Mac Specs: Overclocked Quadcore Q6700 @ 3.6GHz. Watercooled. 2x8800 GTX in sli. OSX 10.6 4GB RAM 1066 4-4-4-12. 24" IPS panel, HP LP2475w.

  4. #4


    Member Since
    Jul 27, 2006
    Location
    Berkshire, Uk
    Posts
    394
    Specs:
    15.4" MBP Sep 09, 2.66Ghz C2D, 4Gb Ram, 320Gb HDD 7200rpm, 10.6.x / iPod Touch 8Gb
    Not sure to be honest, might come with a CLI, if not try searching the support site on xcode

  5. #5

    joeyboots's Avatar
    Member Since
    Jul 13, 2009
    Location
    Philly
    Posts
    53
    Specs:
    Macbook 13" 2.13GHz - Intel Core 2 Duo 2GB DDR2 Memory - 160GB HD - NVIDIA GeForce 9400M
    Quote Originally Posted by Duckshot View Post
    Thanks, is there anything i need to do to get it working from the cli?
    Installing the dev tools will give you full cli functionality.
    You get commands like g++, gcc, c++ for compiling. check out their respective man pages to find out which one you need, I used gcc for compiling C++ in my programming class.
    I'm not a Mac. I'm not a PC. I'm a person.

  6. #6


    Member Since
    Sep 11, 2008
    Posts
    61
    Install the Unix tools and you will get a command line compiler (gcc). Install Xcode for a graphical compiler (and a whole lot more).

    However, since OSX sits on top of Unix, the base install may already have gcc, g++ and c++ ready to go. A Unix box almost has to have a live c compiler just to get updates and new apps installed, but since I always install the Unix tools on any new Mac I get, I am not sure. However, an easy way to find out is to open a terminal session and enter "which gcc", "which g++" and which "c++". If the response(s) is a path, then you have the queried compiler installed.

    Konan

  7. #7

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,788
    Specs:
    Early 2015 13" rMBP
    Quote Originally Posted by Konan View Post
    However, since OSX sits on top of Unix, the base install may already have gcc, g++ and c++ ready to go.
    It doesn't have a compiler pre-installed. The easiest way to get a compiler (gcc) is to install the Xcode development tools.

    Quote Originally Posted by Konan View Post
    A Unix box almost has to have a live c compiler just to get updates and new apps installed, but since I always install the Unix tools on any new Mac I get, I am not sure.
    It doesn't have to have a compiler unless it's package management system depends on one such as the BSDs or Linux distros such as Gentoo. In my experience with *nix, it is very possible to get by without using a compiler.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. g++ compiler
    By trooper83 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 05-18-2009, 12:38 PM
  2. C++ Compiler
    By nyzwerewolf in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 09-25-2008, 11:43 PM
  3. Compiler ...
    By A.I. BOT in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 09-19-2005, 12:00 PM
  4. Compiler ...
    By A.I. BOT in forum OS X - Operating System
    Replies: 0
    Last Post: 09-18-2005, 06:24 PM
  5. De-Compiler
    By Big Beard in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 02-18-2004, 02:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •