I've got a simple hello world example that I'm trying to compile on OS X, named hw.cpp
:
#include <iostream>
#include <string>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
I'd like to compile it using gcc
, but I've had no success. I'd also like to hear the other options, like using Xcode ?