I am learning C++ along with a script. Eclipse is my IDE and I'm using MinGW64 as a compiler. In the script there is following code written, which I am just supposed to copy and compile first:
My script says that as soon as I compile it, in the lower window under "Problems" there should be shown "0 times" and under "Console" there's supposed to be shown:
**** Build of configuration Debug for project HelloWorld ****
Info: Internal Builder is used for build
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "..\\main.cpp"
g++ -o HelloWorld.exe main.o
Build Finished
But instead, when I compile the same code (that's my code):
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
int max;
max = 10;
for (int var = 0; var < max; ++var)
{
std::cout << var << std:endl;
}
return 0;
}
I get following notifications under "Problems" and "Console": Problems Console
I'm definetly compiling on MinGW GCC but I don't know the reason why my Problem and Console notifications are differing from the script, I hope someone can help me.