Author Topic: Auto save on Build  (Read 3586 times)

Multinode Nick

  • Guest
Auto save on Build
« on: November 17, 2006, 04:14:33 pm »
Hi guys,

I have a little concern about the auto save of source code files on build. I hope it's not an already available option that I missed, C::B is still new for me.

When I modify a class, I change the class.cpp and class.h (the auto swap is really useful). But when I compile my class.cpp, the only saved file is the file with the current focus (class.cpp) so the compiler doesn't see the alterations I made to the header file.

When you know that, you can SaveAllFiles at every change to avoid this limitation, but it's an automation that C::B could do better than me ;-)

If it was only for my lazyness, I wouldn't annoy anobody with it, but this C::B behavior can cause some headhache for less experimented programmers because the IDE will show errors on .H lines that may be already corrected but not saved.

Nic

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Auto save on Build
« Reply #1 on: November 17, 2006, 04:23:32 pm »
Try adding your headers to the project.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Multinode Nick

  • Guest
Re: Auto save on Build
« Reply #2 on: November 17, 2006, 04:38:54 pm »
Oh you're right, I was building out of projet code...

Thanks.