Jump to content
4 posts in this topic

Recommended Posts

I am coming from the world of Visual Studio, I need it for school, but I want to start using XCode. I am trying to compile a simple C++ program, a hangman game, that plays in terminal. I can compile it from the command line using g++ just fine but I have no idea what type of project to use so that I can compile and see the results in XCode. I have started several types, including an empty project and the program compiles without any errors but the results are either hello world, or it does nothing. I was reading a few PDFs and they talk about the run log window but where is that? I have no problem using the command line and vi for this but I would like to use XCode and learn it, thanks.

 

Matty

Link to comment
https://www.insanelymac.com/forum/topic/138375-xcode-312-and-c-programs/
Share on other sites

NOTE I AM NOT A PROGRAMMER just an enthusiast. Well if it just a C++ command line program. Setup a New Project from the menu. Use the template C++ Tool under Command Line Utility. That will form a basic hello world example. Delete the main.cpp that it created and then add your cpp files to the project. Compile and you should be all set.

 

Good Luck

Dave

×
×
  • Create New...