Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I see your .cpp file is on the desktop. Open Finder, then browse to Applications -> Utilities, and open Terminal.

Type this exactly:
Code:
cd ~/Desktop/
g++ -o newpj newpj.cpp
./newpj

TextWrangler is not a C++ compiler, and doesn't integrate with the compiler. You can edit your files with TextWrangler, but you need to compile them by hand through the terminal using the command "g++".
 
I see your .cpp file is on the desktop. Open Finder, then browse to Applications -> Utilities, and open Terminal.

Type this exactly:
Code:
cd ~/Desktop/
g++ -o newpj newpj.cpp
./newpj

TextWrangler is not a C++ compiler, and doesn't integrate with the compiler. You can edit your files with TextWrangler, but you need to compile them by hand through the terminal using the command "g++".

I get it know, you and a friend helped me out alot. I didnt understand how to use the terminal, now i do. THANK YOU VERY MUCH!! :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.