The exe file is placed in your project's "bin" directory (then inside either the debug or release folder) by default in code::blocks. When you "build and run" from the IDE you're actually making the exe, that's what code::blocks starts upon completing the build.