g++: no input files
g++: cannot specify -o with -c or -S with multiple files
Ok, first of all, these are two entirely different error messages.
Regarding the last message (with full commandline provided), the message explains what is wrong, and the commandline shows that
main.cpp appears twice. Since
-o is given to specify the output file (Code::Blocks always does that), this is ambiguous. The compiler refuses to write two (different) files to the same output file.
Even after making a new console project in the project wizard and trying to compile it
I'm sorry, but you cannot be telling the truth. I looked at the wizard to rule out a bug in the wizard, and I created a console project which certainly compiles fine without any problems.
I am using rev 4836, which is identical to 4830 in respect of the involved components.
You added
main.cpp as a compiler option after creating the console project, either via the "Build Options" menu, or by editing the project file by hand.