Author Topic: Main.cpp  (Read 3477 times)

Offline z0b

  • Single posting newcomer
  • *
  • Posts: 9
    • http://koti.mbnet.fi/~z0b
Main.cpp
« 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).

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: Main.cpp
« Reply #1 on: May 21, 2007, 01:11:42 am »
Which wizard you used to create new project?

Offline z0b

  • Single posting newcomer
  • *
  • Posts: 9
    • http://koti.mbnet.fi/~z0b
Re: Main.cpp
« Reply #2 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.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Main.cpp
« Reply #3 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.