To compile as C++, I believe you need to use g++.
I really have no problems with you trying to extend C beyond what it was designed for, but I think at some point you really should decide to go C or C++, since they are two different beasts and people will likely frown at such a mix, not to mention you would probably not get away with it in a job.