I have a class implemented in a.cpp and a.h . (Class CA inherits from some other class)
I then add a virtual function declaration, f(), to CA in a.h, but add the implementation to another .cpp file, not a.cpp.
I press F7, and when running the instance of f() in the superclass is involved.
I have to actually modify a.cpp in order that the build actually compile the change and the f() in CA will be called.
In short, it seems like the default rules about what has to recompile are buggy.
Note: I use precompiled headers , but not for the specific a.h in question.
Is this a known bug? Is there a workaround in some compilation swithches? (i.e. I don't want to rebuild all or to remember to manually change a.cpp).