October 28, 201114 yr 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!
October 28, 201114 yr Author 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:
October 28, 201114 yr 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
Create an account or sign in to comment