This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: to install c and c++ compiler on OS X Yosemite 10.10 3
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: hilary <hilary dot law at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 23 May 2015 10:52:32 +0100
- Subject: Re: to install c and c++ compiler on OS X Yosemite 10.10 3
- Authentication-results: sourceware.org; auth=none
- References: <1432213268215-1151452 dot post at n5 dot nabble dot com> <1432342810435-1152132 dot post at n5 dot nabble dot com> <CAH6eHdR3oVJJoa5aUtE8Ogcw7sNu8-qfHtUAfOZE0LV6MWvOqQ at mail dot gmail dot com> <1432349684258-1152144 dot post at n5 dot nabble dot com>
On 23 May 2015 at 03:54, hilary wrote:
> That's what my lecturer said:
>
> You dont need to build the compiler yourselfâ it comes with Xcode, so you
> should already have it installed. Otherwise make sure you have run
> "xcode-select --installâ
OK, so make sure you have run that, and not "cd xcode-select" and "$ git" !
xcode-select is a command, not a directory, so don't try to 'cd' into it!
> I just want to build and run C and C++ source code in terminal.
You should be able to do that with xcode installed. The command to
compile C code is "clang" and the command to compile C++ code is
"clang++" but this list is for GCC, not Xcode or Clang, so for further
help I suggest you find another forum.