I just recently downloaded Code::Blocks for c++ use, and I'm getting an error for this code:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
string name;
cin >> name;
cout << "hello, " << name << "\n";
system("pause");
}
The error says:
The procedure entry point _ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev could not be located in the dynamic link library (path)
Everything compiles perfectly, and it runs properly in the IDE, but when running the executable it gives me the error. I'm using the mingw compiler. Any help is appreciated!