Sorry for the fuzzy answer before; I meant rename the source file.
Code:
mv dummyCHARGP dummyCHARGP.cpp
Maybe edit the Makefile to reflect this change.
I'm speculating that you have a very simple makefile and expect it to automatically derive the dependencies, but it can only do this correctly if the file name has an extension it recognizes.