Boa tarde pessoal,
eu baixei o eclipse c++ e tbm o compilador MinGW.
Bem, pelo proprio eclipse eu fiz criar new Project e escolhi projeto “Executable” - hellow world C++ project.
ao tentar compilar o codigo abaixo:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!!!" << endl; // prints Hello World!!!
return 0;
}
Aparece o seguinte erro:
**** Build of configuration Debug for project teste ****
**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\teste.o ..\src\teste.cpp
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/bits/postypes.h:42:0,
from c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/iosfwd:42,
from c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/ios:39,
from c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/ostream:40,
from c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/iostream:40,
from ..\src\teste.cpp:9:
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:47:19: fatal error: wchar.h: No such file or directory
compilation terminated.
Build error occurred, build is stopped
Time consumed: 125 ms.
Alguem saberia me explicar o porquê ?