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

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -