Command-Line Error D8046

cannot compile C++ file 'file' with the /Zg option; /Zg is only valid on C files.

/Zg can only be used with C files; see /Zg (Generate Function Prototypes) for more information on /Zg.