I was writing my console application project and everything went correctly until I tried to run the .exe file out of CodeBlocks.
When I am trying to run my app with compiling on CodeBlocks, my program runs correctly and returns the correct result. In another way, when I am trying to run the .exe file, not by CodeBlocks, the program runs, I can type input, but before returning a final output, my console is closing.
I added all .dll files from the bin folder from MinGW to the folder with the program, but it didn't help. Do I need to add something more to this folder or do I need to change something with compiling my program? I want to make this program possible to run on another person's computer without CodeBlocks.
I am using Code::Blocks 17.12 and the C++ language.