I am very new to the Xcode environment. I would like to compile some .c and .cpp files. So I created a project with the generic c++ plugin (is it the right choice?). It builds the file with success, but I have no result displaying, even for the “hello world” printf file. Can anyone help? If someone could reccomend some good tutorial, that would be great!
Here is my example code:
#include <stdio.h>
int main (){
printf("Hello World");
return 0;
}
You should create a
Command Line Toolproject, not Generic C++ Plugin.Once you do that, your output will show up in the console window in xcode.