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

KrrSplat

macrumors member
Original poster
Apr 16, 2009
34
1
Sorry if this seems like a silly question but Im taking my first programming class and for the life of me I cannot figure out how to compile my program.

Here is what I did:
1) Open Xcode
2) Select file > New
3) Select C++ File under the Source tab under OSX
4) Name File. I tried including header file. Didn't work
5) Write Code
6) This is where I am stuck.

It should be noted that I also tried creating a c++ file without a header. Didn't work.

Here is a screen shot of what I have going on.

http://i.imgur.com/PpW0Rr1.png

I have this exact code on the computer system at school and it compiles fine in Dev CPP. Can anyone help?
 
First step is "Project, new" not "File, new". Easiest is to choose a C++ command line tool for MacOS X.
 
  • Like
Reactions: KrrSplat
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.