Jump to content

Adventures in c++ [solved for now]


Perakp

Recommended Posts

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.0

g++-4.2

gcc

gcc-4.0

gcc-4.2

 

The adventure continues!

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.