Uhm, apparently the OP is on Linux, there are no .exe files on Linux, binaries usually have no extension at all. Don't know why he thinks a shared object file (extension .so) gets created, but from the log and the statement that CodeBlocks can execute the program, i see no error here.
Hopefully he doesn't think that adding an .exe extension makes the program runnable on Windows?