eclipse - a fatal error in compiling a c++ program -


i using eclipse kepler c++, in compiling simple hello world program saw error.

c:\mingw\include\_mingw.h:73:20: fatal error: w32api.h: no such file or directory 

while whole windows bellow.

09:15:59 **** incremental build of configuration debug project project1 **** info: internal builder used build g++ "-ic:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\c++" "-ic:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\c++\\backward" "-ic:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include" "-ic:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include-fixed" "-ic:\\mingw\\lib\\gcc\\mingw32\\5.3.0\\include\\c++\\mingw32" "-ic:\\mingw\\include" -o0 -g3 -wall -c -fmessage-length=0 -o "src\\project1.o" "..\\src\\project1.cpp"  in file included c:\mingw\include\wchar.h:53:0,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\cwchar:44,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\bits\postypes.h:40,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\iosfwd:40,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\ios:38,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\ostream:38,                  c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\iostream:39,                  ..\src\project1.cpp:2: c:\mingw\include\_mingw.h:73:20: fatal error: w32api.h: no such file or directory compilation terminated.  09:16:01 build finished (took 2s.535ms) 

what can do? code this

#include <iostream> using namespace std; int main() {      cout<<"hello world"; } 

the problem related mingw installer. there package must installed, didn't install it. go mingw installer , add ming-w32-w32.api , apply changes installation menu.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -