I'm trying to develop programs using C++ and Eclipse on MacOS X but I can't make it work. Please help me configure Eclipse! I have job interviews and I need to refresh my C++ skills!
I installed Eclipse CDT and GCC compiler for MacOS X and I try to compile a simple HelloWorld program (see code below).
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
I get errors and warnings and I can't seem to resolve them. Any help would be much appreciated.
Errors
- Symbol 'cout' could not be resolved (Semantic Error),
- Same for 'endl',
- Same for 'std'.
Warnings
- Error launching external scanner info generator (g++),
- Error launching external scanner info generator (gcc),
- Program 'g++' is not found in $PATH,
- Program 'gcc' is not found in $PATH.
g++ command not foundorg++: no input file? - Farzam