Reputation: 22438
When clicking the "Build" symbol in Eclipse CDT, it is supposed to build only the source files which have changed. A very annoying behavior of Eclipse CDT is that it very often ignores that "minor" changes have been made, but it is not clear what minor means.
The output then is
13:21:06 **** Incremental Build of configuration <config> for project <proj> ****
make all
make: Nothing to be done for `all'.
The only way for me to test the changes I just made is then to clean and completely rebuild the entire project, which wastes a lot of time.
What could be the problem here and how can I fix incremental building?
EDIT: Could it be that not minor, but very recent changes are ignored because of some clock synchronization issue?
Upvotes: 4
Views: 2190
Reputation: 2827
If you made your changes only in header file, you should clean your project so that the changes are included in new compilation. Changes in macro definitions and static variables also require a clean of the project in Eclipse CDT.
Upvotes: 3