Uninstall CodeBlocks, this will solve all your problems easily.
If you want to take a more painful path, google what the c programming language is, especially what a compiler is and does, and then rethink about your whish to not turn .c files into .o files.