I know nothing about C++, and I wanted to see how it was like, so I got the latest version of Xcode for mac, and got a simple program from the internet, shown below:
#include <iostream> using namespace std; int main() { cout<<"Hello World!\n"; cin.get(); }
except when I press run, it says that the file "iostream" wasn't found. And when I delete the line of code with #include <iostream>, then 3 more errors come up.
Is there some sort of setup that I missed, what am I doing wrong?
Last edited by TorbyFork234 (2012-11-17 15:22:45)
Offline
Could you upload the .xcodeproj file? (you may not want to, I believe it has your name in it somewhere, and unfortunately I figured out how to get that info..)
If not, a few screenshots would be nice (of Xcode, compiling, etc.)
Offline
bobbybee wrote:
Could you upload the .xcodeproj file? (you may not want to, I believe it has your name in it somewhere, and unfortunately I figured out how to get that info..)
If not, a few screenshots would be nice (of Xcode, compiling, etc.)
As said before, I am completely new to Xcode, and so I don't know what you're talking about.
And unless it gets my name from my computer, I put in TorbyFork234 for every spot it automatically put in my name.
Offline
I figured out the problem, I had it under the wrong type of application.
Reporting to be closed...
Offline
TorbyFork234 wrote:
bobbybee wrote:
Could you upload the .xcodeproj file? (you may not want to, I believe it has your name in it somewhere, and unfortunately I figured out how to get that info..)
If not, a few screenshots would be nice (of Xcode, compiling, etc.)As said before, I am completely new to Xcode, and so I don't know what you're talking about.
And unless it gets my name from my computer, I put in TorbyFork234 for every spot it automatically put in my name.
(from the computer)
Offline
Wow, the mods haven't been on for hours.
Offline