User forums > General (but related to Code::Blocks)

Main.cpp

(1/1)

z0b:
Sorry for the rant, but I'd really like to know why Code::Blocks INSISTS on overwriting (possibly) existing main.cpp?

See, I have a large project. Had some problems with it, though of recreating the project file. A new project file itself was created just fine. Added the source files, configured the project, compiled... and there I was sitting with a new main.cpp. My old >100 KiB main.cpp was overwritten with 4 KiB default file. Last backups are about week old and I had added around 500 lines code to that file since that.

I just want to say "Thank you" to whoever invented this great feature. Hopefully future nighlies make it possible to change this behavior.

Yeah, I've used C::B two years. First time I've seen this kind of bug.

Lock the topic if you want. Not sure if I reply to this. I'm going to turn off computer after posting this. I'll come back tomorrow. Gotta calm down before I violently break something expensive (like display).

pauliusz:
Which wizard you used to create new project?

z0b:

--- Quote ---Which wizard you used to create new project?
--- End quote ---

Just the normal File/New/Project and Win32 GUI from the list.

Oh well, I've mostly recovered this from now. I still had the details fresh in memory, so I added the changes to old version quickly. Took three hours.

rickg22:
If you're creating a new project, try "empty project". It doesn't include any files by default. Then add the files you want to the project.

Navigation

[0] Message Index

Go to full version