They should add fine, considering the Microsoft C compiler will compile both. If you add them to the project, they'll get passed to cl
-- and I believe cl
makes a choice what mode to use based on the extension of the file. You're using .cpp
, which is good.
In short: Yes.
GCC will do this too, so your makefile should be reasonably portable.