Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: z0b on May 20, 2007, 07:32:23 pm

Title: Main.cpp
Post by: z0b on May 20, 2007, 07:32:23 pm
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).
Title: Re: Main.cpp
Post by: pauliusz on May 21, 2007, 01:11:42 am
Which wizard you used to create new project?
Title: Re: Main.cpp
Post by: z0b on May 21, 2007, 04:58:06 pm
Quote
Which wizard you used to create new project?

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.
Title: Re: Main.cpp
Post by: rickg22 on May 23, 2007, 10:51:12 pm
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.