When I compile any correct program on Dev-Cpp, it could be:
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
then it shows the following compile error:
D:\Development\C++\Makefile.win [Build Error] [main.o] Error -1073741819
specifically this:
Compiler: Default compiler
Building Makefile: "D:\Development\C++\Makefile.win"
Executing make...
make.exe -f "D:\Development\C++\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"D:/PROGRAM/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/PROGRAM/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/PROGRAM/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/PROGRAM/Dev-Cpp/include/c++/3.4.2" -I"D:/PROGRAM/Dev-Cpp/include"
make.exe: *** [main.o] Error -1073741819
Execution terminated
where D:/PROGRAM/Dev-Cpp
is where I store Dev-Cpp, D:\Development\C++
is where I store the .dev file as well as the source code of the project
I've tried looking up this error online, but can't find any solution. What should I do?
Edit: I have tried replacing #include <bits/stdc++.h>
by #include <iostream>
, but the results are unchanged. I also tried some sample Dev-Cpp C++ programs in Dev-Cpp\Examples
folder but they still don't work and give the same result. My Dev-Cpp Version is 4.9.9.2