|
From: Janse v. V. T, M. <161...@su...>
<161...@su...> - 2013-11-14 05:53:58
|
I don't know what I did exactly but my MinGW is not working properly.
This code:
#include<iostream>
int main()
{
std::cout<<5;
return 0;
}
Compiles and makes an executable, but when I run it it crashes.
Just a dialog that says this program has stopped working
This code however:
#include<iostream>
int main()
{
std::cout<<'5';
return 0;
}
Does work, and prints 5 as expected.
Another symptom is that I can't open files with fstream:
std::ofstream q("new.txt");
compiles an executable that crashes exactly the same way.
I'm using 64-bit windows7.
I recently installed(and uninstalled) mono for C#
I've tried reinstalling all the mingw packages
I compile with the following command prompt lines:
g++ -c magic.cpp -o magic.o
g++ magic.o -o magic.exe
|