Ok I did everything what this video says about downloading Code block, http://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83&index=1&feature=plpp_video. but when I press "Build and run" it says this instead " "test1 - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done."
What is with everyone and watching youtube videos? Does no one know how to read websites anymore? That's not directed at you, just a general observation I've been noticing.
Aside from that, you've downloaded Code::Blocks w/ MinGW from that link I gave you, correct? Have you disabled AVG to make sure it's not going to interfere with your compiler? And I'll have to watch the video to see what it told you to break. It was a straight forward install, you didn't need to do anything special to install Code::Blocks, that's why I suggested to just download that link.
Well, I just watched the video, and it was a straight through explanation of how to install it and run a basic application. Since I'm pretty sure that you selected GNU GCC Compiler from this list (this was default), I'm going to have you make sure it's auto detected correctly.
Follow these steps:
Settings -> Compiler and Debugger...
The window that opens up, make sure GNU GCC Compiler is the option selected at the very top. Set as default should be grayed out. Underneath of that, there is a bunch of tabs.
Click Toolchain executables
The box under it changes and shows a bunch of directories. Then you see Compiler's installation directory and a file path under that. To the right, you see some buttons.
Click Auto-detect
A pop up should come up saying Auto-detected installation path of "GNU GCC Compiler" in "yourpathname"
Click OK
Click OK
That should fix your problems. If for some reason that failed to work, try restarting Code::Blocks and creating a new project and make sure that GNU GCC Compiler is selected. Try building and running it again.