Hey everyone. I just got a new Mac. I've been coding on my windows computer with VS 11 and now 13. I want to transfer over so I need a good Mac compiler for C++. Any besides xcode would be good(I don't like its interface that much). If anyone could supply a link or a name, that would be great. Thank you!
xcode is an ide not a compiler. which do you want? i think clang w/ llvm is made by apple. theres always the gcc btw. as far as ides go... there might be a code::blocks build for mac but idk what any others might be
Well I've had a Mac for years and think XCode is a very good IDE. BTW - I used VS at work and I believe XCode is better, obviously XCode is for OSX and VS is for Windows, before someone tells me ;-)
Hi everyone. I downloaded sublime and it is really nice to use, a bit empty, but OK. When I try to compile something in it, it says no input files. Where can I download gcc? A link would be great! Thank you!
that would be called console. i dont know the best way to get it for mac because i dont believe it has apt-get. dont listen to me though; i dont use appleware
First, you should open the terminal and type gcc and hit enter. You want to see something like this:
1 2
gcc: fatal error: no input files
compilation terminated.
That means you can compile something.
If that is what Sublime said to you, even better. Sublime is probably looking for a makefile, so you'll want to make one of those.
I played around with Sublime. At first I liked it, then I stopped. I felt it was trying to hard ( it isn't free either ). I also can't stand auto-complete, but that's probably just me. Don't get me started :p
i dont know the best way to get it for mac because i dont believe it has apt-get. dont listen to me though; i dont use appleware
Homebrew is what mac people use ( in lieu of apt-get ). Maybe updating XCode and installing the Command Line tools gives you a better compiler. I didn't find a simple way to update from gcc 4.2.
Sublime isn't free but, strictly speaking, there is no time limit on the evaluation period. If you're happy with clicking 'cancel' every now and again when prompted to buy then it's more or less free software.
jazpen wrote:
Where can I download gcc?
The easiest way is to download the XCode command line tools. It's basically a set of Unix-based tools that includes gcc.
If you go to the Downloads preference panel and click the Components tab in Xcode, you should see an option to download the command line tools. Once they're downloaded, gcc should work fine through Terminal.