This is a bit vague. Here is my idea , go to settings compiler and them press 'reset defaults' then click 'ok' you should have a pop-up with your compiler ussually something like 'GNU/GCC' if not download here http://sourceforge.net/projects/codeblocks/files/Binaries/13.12/Windows/codeblocks-13.12mingw-setup-TDM-GCC-481.exe
This works with and second when you are making the project make sure you have a valid location on your pc.