As far as I know this works fine.
Can you make a sample project and post the steps to reproduce the problem?
And what version are you using?
I'm using 13.12 but it was working fine at one point.
http://imgur.com/a/KkPsqThere are a few screenshots.
In the first screenshot test.cpp is part of the project "Primer" and pressing F9 brings up the console with the desired output.
Then I remove test.cpp and add EX17.15.cpp to the project. This is a different source file with different output, but pressing F9 still brings up the console with output from the previous (i.e. test.cpp) source file. It hasn't compiled anything new, and it says at the bottom left that the target was up to date.
The only way to rectify this is to right click the project and say "rebuild", but I never had to do that before.
Third screenshot shows my compiler settings, but again it happens with even the default GCC compiler.
(Actually as I've discovered, if I were to change EX17.15.cpp in any way [e.g. by adding a comment] and
then press F9, the project rebuilts as desired. It's only when I add it to the project without making any changes).
If you want to test this yourself. Start an empty project with a source file with a certain output and press F9 to build and run. Then remove that source file, add another one with a different output and press F9 to build and run. Does it rebuild the project?