C++/mingw-gcc-g++ string declaration error
问题 I am using g++ to compile a very simple c++-program with g++ main.cpp -o main.exe My code: #include <string> int main() { std::string a; return 0; } [Windows 10 | mingw-gcc-g++ 6.3.0-1] When I try to run the created main.exe, I get the exit code: 3221225785. gdb returns: (gdb) start Temporary breakpoint 2 at 0x401464 Starting program: C:/[...]/main.exe [New Thread 14272.0x1238] [New Thread 14272.0x548c] [New Thread 14272.0x42fc] [New Thread 14272.0x3db4] During startup program exited with