I am having immense difficulty trying to use std::string. The program compiles absolutely fine, but when I run the program, I receive this error: error
I have looked
You can use
g++ <file> -static-libstdc++ -static-libgcc
I had the same problem, but it worked for me
I downloaded GCC from this link: Source Forge and reinstalled GCC. My problems were successfully fixed.