Solution : Couldn't save project Code::Blocks

After entering to engineering, we are introduced to a new interesting subject : "Programming". We get to learn programming in our classes and labs. The most popular IDE in my college to start programming with though is the Borland C/C++ IDE for C/C++ development but the software is quite outdated so I choosed Code Blocks, a free and open source cross platform IDE which supports multiple compilers including GCC, Visual C++. It currently supports development in three programming languages namely C, C++ and Fortan and is available for Windows, Linux and MacOS.


Error:

But the time I installed it for the first time on my PC, DaMN S**t . It showed this Warning message:"Couldn't save project <invalid path>(Maybe the file is write-protected?)"

What this Warning means?I got a couple more dialogs showing errors...."can't find compiler executable in your configured search path's for GNU GCC Compiler". 
This showed the error was something with the compiler. If you are experiencing the same error here's the explanation to problem and the solution:

Problem: 

The Compiler executable and some other important files aren't extracted by the application during the installation.
If you do not see any folder named "MinGW" in Code:Blocks installation directory, mainly C:/Program Files(x86)/Code Blocks  then you are having the same problem.It is this folder which isn't extracted during installation.

Solution :

The solution is simple you need to get the folder "MinGW" in your installation directory.
Download the MinGW Folder from here(.zip file),( don't worry it's Virus Freeextract the zip file and copy the same in your Code:Blocks installation directory i.e. C:/Program Files(x86)/Code Blocks. After copying, all the required files will be complete hence the Code:Blocks program sholudn't show any error.
After copying :

Restart the Code:Blocks and it should be working fine.


Thanks for Reading

1 comment:

Powered by Blogger.