I have just created a new Hello World project in Eclipse.
When I try to run the default helloworld program I get these 4 errors:
Description Resource Path Location Type
Program "g++" not found in PATH Zululami Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
Symbol 'cout' could not be resolved Zululami.cpp /Zululami/src line 13 Semantic Error
Symbol 'endl' could not be resolved Zululami.cpp /Zululami/src line 13 Semantic Error
Symbol 'std' could not be resolved Zululami.cpp /Zululami/src line 10 Semantic Error
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//============================================================================
// Name : Zululami.cpp
// Author : Martin
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
usingnamespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
I have now installed MinGW for windows.
I am using windows 8
now I get only one error:
11:43:00 **** Build of configuration Debug for project Zululami ****
make all
'Building file: ../src/Zululami.cpp'
'Invoking: Cross G++ Compiler'
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Zululami.d" -MT"src/Zululami.o" -o "src/Zululami.o" "../src/Zululami.cpp"
'g++' is not recognized as an internal or external command,
operable program or batch file.
make: *** [src/Zululami.o] Error 1