urlugal Posted November 27, 2008 Share Posted November 27, 2008 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 More sharing options...
drake3d Posted November 27, 2008 Share Posted November 27, 2008 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 Link to comment https://www.insanelymac.com/forum/topic/138375-xcode-312-and-c-programs/#findComment-979261 Share on other sites More sharing options...
urlugal Posted December 2, 2008 Author Share Posted December 2, 2008 Thanks, that did the trick. I had to save the main.cpp file before it would work, that was what was screwing me up. Matty Link to comment https://www.insanelymac.com/forum/topic/138375-xcode-312-and-c-programs/#findComment-985364 Share on other sites More sharing options...
drake3d Posted December 2, 2008 Share Posted December 2, 2008 Very good glad I could help. Link to comment https://www.insanelymac.com/forum/topic/138375-xcode-312-and-c-programs/#findComment-985529 Share on other sites More sharing options...
Recommended Posts