> LINK : warning LNK4001: no object files specified; libraries used
This line suggests that there are no compilable files in the current build target. Check that at least one file belongs to this target.
Also check that this (or these) file(s) is "compilable" and "linkable" (in file properties).

I get the same errors, I can compile Ogre samples that are part of OgreSDK by importing them into code::blocks, but I get these errors when trying to compile the new Ogre Template sample that is included with Code:Blocks. Would someone try to compile to see if it's my settings or the Template?