Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dvince2

macrumors 6502
Original poster
Mar 6, 2007
283
1
Canada
Hey everyone
I've been trying to find an answer to this both here and through google, but i've had no luck.
I'm teaching myself C++, and am writing some basic (hello world, add to numbers, guess the number, etc) programs. I want to learn xcode's IDE (I've been using eclipse for java and C development (as well as emacs :) ).

My issue is, I don't see a way to run the program through xcode. I know that in eclipse, there is an interactive terminal at the bottom of the window. I don't see anything like this in xcode.

Is there an interactive terminal in xcode? Or do i have to use the actual terminal to compile and run the code I'm writing?

Thanks,
dvince2
 

szymczyk

macrumors regular
Mar 5, 2006
187
17
In Xcode 3 you have to open the debugger console to enter input and see the output of command-line programs. Choose Run > Console to open the console. Choose Build > Build and Run to run your program.
 

justmyself

macrumors member
Jan 2, 2009
32
0
File > New Project > Command Line Utility > C++ Tool

That should do it. Just write your app in the main.cpp. Build and Go will open the console.

Hope that helps.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.