News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compling only modified files

Started by drogza, August 17, 2009, 12:29:39 AM

Previous topic - Next topic

drogza

Hello,

Is there a way to compile only the files recently modified?

Each time I hit build, it compiles the whole files of the proyect instead of just the file or files recently changed.

thanks for the tips

stahta01

One make sure you are hitting build not rebuild.
Build only builds files that are newer than the output objects.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

blueshake

hi, you can do this.
in menu build->compile current file.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Jenna

#3
Quote from: drogza on August 17, 2009, 12:29:39 AM
Is there a way to compile only the files recently modified?

That's the normal behaviour.
As Tim wrote, make sure not to hit rebuild instead of build accidently.

Check the time stamps of your files, where do you save them ?
And be aware, that if you change include files, that might also lead to a recompile of an unchanged file.