I'm trying to write to a file in C++, however as soon as I run my .exe file, I get the following error
"The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library C:/Users...
"
Here is my code
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
ofstream outfile ("test.txt");
outfile << "Hello World\n"; // error happens here
return 0;
}