Hi, I just switched to CODEBLOCKS 10.05 from Code::Blocks 8. and Dev C++.
After i installed Code::blocks 10.05and tried to run my previously saved C++ programs, I couldnt run them.
With Code::Blocks 8.0
To be more clear, when I run a source file placed on desktop, it runs without any problem but if I place the same source file somewhere else in my hard disk other than the desktop,then the program doesnt run.
If the source file is not placed in the desktop, then Starting from the first line, error messages popup when pressed F9.
Why does this happen?? I keep my files and folders very organized in my PC and I dont want to keep all my source files on desktop. Can anyone tell me whats happening??
With Code::Blocks 10.05
After going through this site, I downloaded the new version(10.05) of Code::Blocks thinking that my above mentioned problem would be solved. But now in this new version, its more worse. Now, no matter where I keep my source files, they dont run. Infact this time, no error messages, nothing popups. The screen is just filled with my codes and nothing comes even I press F9 or click any of the options in the BUILD menu.
I really dont want to switch to Dev++,so please help me guys!!!

Hi,
Since you did not gave a lot of information, the best way would be to de-install and reinstall. Try to follow these steps:
1 - De-install Code::Blocks => Use Control Panel / uninstall software to do that cleanly
2 - Download the following file:
codeblocks-10.05mingw-setup.exe from here:
http://www.codeblocks.org/downloads/26 3 - run the setup. It is pretty straightforward.
Advice: avoid using path with spaces. "C:\Program Files" for instance.
It is possible to use CodeBlocks + Mingw with such a path, but it requires more configuration. Keep it simple for now, and avoid it.
Install on C:\ directly.
4 - once done, it is time to configure. Start Code::Blocks. In the menu "Settings", select "Compiler & Debugger..."
Select the category "Global Compiler Settings" on the left bar
In the dialog pane, in the combo "Selected Compiler", select "GNU GCC Compiler"
Click on the button "Set as default"
Click on the tab "Toolchain Executable"
In the text box "Compiler's installation directory", check that the path indicated leads to the Mingw compiler (this is the path of the folder containing the "bin", "include" and "lib" directories. A typical path is "C:\Mingw".)
5 - Click on the tab "Other settings"
In "Compiler logging", select "Full Command line"
Click OK
6 - Quit Code::Blocks (menu File -> Quit). It will ensure that your settings are saved.
7 - Restart it.
8 - Go in menu "Settings" and select "Environment"
In the category "General Settings" on the left, select "Check & Set files associations"
Click on the button "Set now".
9 - In the menu "View" / "Perspective", make sure that "Code::Blocks default" is selected.
10 - Quit Code::Blocks and restart.
Now your problem should be solved.
Report back on your success (or failure...). In case of failure, make sure to :
- tell us what you did
- send the compiler error message and / or CodeBlocks error message
- You can attach a screenshot, using
www.imageshack.com for example.
I suggest you to take the time to explore the options in CodeBlocks (menu settings"). It is worthwhile, and it will save you a lot of trouble.
Granted, it can be intimidating (lot and lot of options), but this is what makes CodeBlocks so powerful.
Good luck !
Sebastien