This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-11-17 15:22:30

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

C++/Xcode help

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:

Code:

#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

 

#2 2012-11-17 15:24:53

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C++/Xcode help

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


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-11-17 15:27:47

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: C++/Xcode help

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

 

#4 2012-11-17 17:15:22

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: C++/Xcode help

I figured out the problem, I had it under the wrong type of application.
Reporting to be closed...

Offline

 

#5 2012-11-17 17:39:04

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C++/Xcode help

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)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#6 2012-11-17 19:57:11

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: C++/Xcode help

Wow, the mods haven't been on for hours.

Offline

 

#7 2012-11-17 20:43:56

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: C++/Xcode help

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer