Language: C++ IDE: Code::blocks Compiler: GNU GCC OS: WIndows
I am trying to create an executable. When I go to the executable file, and I attempt to open it, it says " the code execution cannot proceed because libstc++-6.dll was not found. Reinstalling this program might fix this problem." The problem is that the code works when I run it inside my IDE, but not when I attempt to double-click the executable file itself.
I have done some experimenting and came up with this:
1: This problem only shows up if I am using the iostream library. 2: I have looked in the directories of my compiler, and libstc++-6.dll is indeed there.
This problem has been plaguing me for a while, and I have no idea how to resolve it... Any help is appreciated. Thanks!
EDIT: I couldn’t figure out how to link it statically, if that’s a word. So what I did is I copy-and-pasted three libraries to the same directory as my exe and it worked. The libraries were the ones which my compiler told me were missing. Thanks everyone!