Perakp Posted October 28, 2011 Share Posted October 28, 2011 So I decided to take a course in c++, but making things difficult I want to be able to work at home, which means getting set up on this mac.Apple has an IDE for cocoa/objective c/c/c++ called xcode which i downloaded, and supposedly it comes with compilers and all. So I should have compilers downloaded. Problem is, I don't get the terminal command g++ working: -bash: g++: command not found I want to be able to write code in a text editor and compile and run via command line (aka terminal on osX) If someone is familiar with setting up compilers, has done c++ programming on a mac system or is feeling otherwise helpful, please share your wits. Btw I'm posting this here and not on a mac forum because I'm stupid. EDIT:Found the location where the compilers are installed. These files are related to the gnu compiler collection: g++g++-4.0g++-4.2gccgcc-4.0gcc-4.2 The adventure continues! Link to comment Share on other sites More sharing options...
Sbrideau Posted October 28, 2011 Share Posted October 28, 2011 I know someone that uses xcode, I'll talk to him see what he tells me. Link to comment Share on other sites More sharing options...
Perakp Posted October 28, 2011 Author Share Posted October 28, 2011 i reinstalled xcode and this time selected one checkbox and now it works.First time I thought: I won't need these useless extra features, I won't install them. Turns out what I needed was just that. Time to become pro c++ coder for real! :shades: Link to comment Share on other sites More sharing options...
obfuscator Posted October 28, 2011 Share Posted October 28, 2011 Yeah, I was doing a little C++ on my linux server a while back and had the same problem. Installing g++ fixed it as well :P "It's not a rest for me, it's a rest for the weights." - Dom Mazzetti Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now