You do not have a bad option, even if it is in the program folder, it does not ask for it. The second option is to put libstdc++.dll in another folder, and set the path to it in the PATH environment variable. Then Vindouz booth will automatically find it. The third option is to copy it to system32 , in practice I would not recommend doing so, but it will work. Read more about searching for DLLs .
Well, at the root of the problem can be solved by static inclusion of libstdc++ in the executable file. To do this, add the compilation flags -static-libstdc++ and -static-libgcc . After this build no standard DLL with the program you do not need to be.