xcode 4 console problem?
dunno why but my console won't display my simple .cpp
#include <iostream>
using namespace std ;
int main()
{
cout << "hi" << endl;
return 0;
}
hmm any hints?
Xcode-OTHER, Mac OS X (10.7.2)
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
dunno why but my console won't display my simple .cpp
#include <iostream>
using namespace std ;
int main()
{
cout << "hi" << endl;
return 0;
}
hmm any hints?
Xcode-OTHER, Mac OS X (10.7.2)
Some questions:
When you say the console doesn't display your output, do you mean that when you run the Xcode project, the debug area and console open in Xcode but no output is displayed?
If you create a C++ command-line tool project and run it, does the console display the Hello World output?
I have an article on my website that walks you through the creation of a C++ command-line application in Xcode 4. You can find it at the following URL:
So the debug/console area is open when I run the project and no output is displayed. It first reads build succeeds and then nothing happens.
The console displays nothing I can tell. I'm checking your link now and thanks for a quick reply. Can't wait to get this resolved so I can dabble on the go.
I am having same problem but the link didnt help @ Mark
I have read all prior answers to similar questions and they all seem to pertain to displaying output for a Command Line project. But what if you'd like to run as what Xcode calls a 'Empty' (project with no files, targets or build configs)?
The code below builds successfully. And yet the 'All Output' console still does not show the results. I tried to go deep into the GDB documentation but I'm a newbie and I get lost in it.
Below is the code:
#include<iostream> usingnamespace std;
int main() {
cout <<"Come up and C++ me some time.";
cout << endl;
cout <<"You won't regret it!"<< endl;
std::cout <<"Press any key to continue."<<endl;cin.get();cin.get();return0; }
William_L wrote:
what if you'd like to run as what Xcode calls a 'Empty' (project with no files, targets or build configs)?
Then you aren't building anything to begin with. No executable == no output.
Hello mim,
I have a similar problem and I just want to ask if you have been able to solve it and what did you do?
xcode 4 console problem?