How to compile and run a C++ program with Eclipse for mac? -
i have simple c++ app writen using eclipse ide.
#include <stdio.h> int main(int argc, const char * argv[]) { printf("hello world"); return 0; } on mac know how compile/run code???
the simplest way open terminal windows , go directory of source file , type (assuming have g++ installed): g++ filename.cpp
run it: ./a.out
if want compiler integrated within eclipse, can see link on how build c/c++ projects in eclipse.
Comments
Post a Comment