I've been trying to run simple c++ program
#include<iostream.h>
using namespace std;
void main(){
cout<<"helloworld";
}
But got a error like this:
In file included from d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\bits\postypes.h:40:0,
from d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\iosfwd:40,
from d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ios:38,
from d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\iostream:39,
from my.cpp:1:
d:\mingw\lib\gcc\mingw32\9.2.0\include\c++\cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^
compilation terminated."
I have updated sublime-build file for windows and also changed environment variables. Please help me to fix this error in sublime. I am using MinGW compiler.
Aucun commentaire:
Enregistrer un commentaire