Problems with C++

Anything else
User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:35 pm

How do you START a C++ project in Xcode?

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 6:38 pm

without a gui (terminal tool) just select c tool or C++ tool

Cocoa for something with gui

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:39 pm

It figures, now how do you compile it?

Nayr
wicked bad-ass title
Posts: 643
Joined: Wed Jul 07, 2004 9:35 am

Post by Nayr » Thu Feb 10, 2005 6:40 pm

File->New Project

select "C++ tool"
there ya go

execute it with a "./whatever the heck your app name is" in the terminal, after cding into you directory.

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 6:40 pm

press build, btw do you have msn or aim? cuz i don't like posting every 20 seconds lol

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:42 pm

Sorry. lol, I didn't mean to frustrate you, but I have AOL and that's it. I can make an AIM account if it'll let me this time though.

zip
lugaruguru
Posts: 1820
Joined: Mon Jan 26, 2004 12:39 pm
Location: USA, Missouri
Contact:

Post by zip » Thu Feb 10, 2005 6:43 pm

Blorx, you have a teach yourself book on the subject.. why don't you teach yourself? :)

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 6:44 pm

lol wouldn't let me the first time either... oh well, you don't have to use terminal to execute it, you can just click it

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:45 pm

It teaches you using a windows compiler (meaning the instructions for compiling, etc. are using that program) So, I needed a Mac compiler which, it said I could use, just...without a step by step "thing"

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 6:48 pm

btw most pc books will tell you just to write

cout<<"stuff"<<endl;

in xcode you must write

std::cout<<"stuff"<<endl;

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:49 pm

That's what it makes me do.

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 6:50 pm

what, xcode? that means it's working

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 6:53 pm

No, the book! It makes me do the "std::cout" thing.

DudetheCreator
Posts: 226
Joined: Thu Sep 23, 2004 10:06 pm
Location: Lost in the 404 errors...
Contact:

Post by DudetheCreator » Thu Feb 10, 2005 7:46 pm

yay good book!

User avatar
Blorx
NOT A FRIGGIN PROGRAMMER
Posts: 3272
Joined: Wed Jan 26, 2005 4:01 pm
Location: South Carolina, United States
Contact:

Post by Blorx » Thu Feb 10, 2005 7:48 pm

thanks for the help DtC

Post Reply