I've made a project with codeblocks using MinGW 5.1.0 and everything compiles fine and without errors or warnings and it runs fine when I run it from codeblocks, but when I run it from outside codeblocks, this error comes up: "The procedure entry point _ZNKSt7__cxx1112basic_stringlcSt11char_traitslcESalcEE4dataEV could not be located in the dynamic link library C:\Users\Dominic\Documents\equationCompiler\bin\Release\equationCompiler.exe".
I'm using no libraries except the standard libraries (<string>, <vector> etc) and I've only built it in release mode and I'm pretty sure I'm using codeblocks 13.12. What can I do to solve this?
EDIT - A removal of all versions of MinGW and reinstall of 5.1.0 made it start working again.