User forums > Using Code::Blocks

Auto save on Build

(1/1)

Multinode Nick:
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

thomas:
Try adding your headers to the project.

Multinode Nick:
Oh you're right, I was building out of projet code...

Thanks.

Navigation

[0] Message Index

Go to full version