I haven't had a computer for a few months, and this week I brought a new one. The first thing I did was download Code Blocks, but when I tried to create or run an old project I got the message, "Can't find compiler executable in your configured search path for GNC/GCC". Well after several repeat downloads, and experimentation I got it to work.
I remembered I had a windows 7/32bit laptop which didn't have "Program Files(x86)", (this is where Code Blocks was extracted and I read that apparently this destination is associated with 64bit programs), so i did the following:
1- Move the File named "CodeBlocks" from "C:\Program Files (x86)" into the normal "C;\Program Files", (I was hoping all the extracted files in the program were associated with this destination as they were unpacked).
2- Then go to the top bar, click "Settings", then "Compiler". A screen should appear saying "Global Compiler Settings." Click on "Toolchain Executables". Look at the bar in the top of the white area called "Compilers Installation Directory", look along to the far right of this bar and click "Auto Detect". The Compilers Installation Directory should now read "C:\Program Files\CodeBlocks\MinGW".
After all this the whole thing worked. I hope this helps any others that have the same problem. I dont know if it is Windows 8.1 or the fact that the computer is 64bit. I'd guess 64bit as it involves "C;\Program Files (x86)"
P.S. Anyone having problems with Kaspersky or other Antivirus Software giving false Positives. The fix I gave before is working on my new computer too. Create a partition in the hard drive and store your saved files in the partition. For whatever reason the Antivirus no longer detects the files as trojons or other types of virus/Malware.