I recently installed the newest version of Code::Blocks. I create new C++ projects using all the defaults except using them as *.cpp files instead of *.cbp. Every time I try to save, the "Save project" option on the File drop down menu is grayed out and cannot be selected. So my only option is to click "Save everything" and "Save all projects". However, if I close the project and try to reopen it, i get this bit of code every time:
It creates a file in the designated directory and everything, but there is no existing "project file", only a *.layout file which cannot be opened and two C++ source files; the "main.cpp" (which shows the code I typed just fine) and then the "WhyWontThisWork.cpp" source file which, when selected, first sends up an error message saying "There was a problem sending the command to the program." and then throws up that bit of code I posted above.
I have looked every where for a solution to this but no one else seems to have had this problem. Any help would be greatly appreciated.
Ahh. But I guess that just confuses me because my book and every c++ tutorial I've seen saves them using *.cpp. Is there a reason they would do this and teach everyone to do this if it's not going to work for them?
Ahh. But I guess that just confuses me because my book and every c++ tutorial I've seen saves them using *.cpp. Is there a reason they would do this and teach everyone to do this if it's not going to work for them?
*.cpp files contain your actual C++ source code.
*.cdb is your Code Blocks project file. Why are you changing it to have the same extension as a C++ source file?