/Tc Compiler Option

Syntax: Default:
/Tc filename Compile *.cpp and *.cxx as C++, compile *.c and unrecognized files as C.

Use /Tc to specify that the following file is a C file, regardless of its extension.

Important: The /Tc option must be immediately followed by a filename, and applies only to that file.

By default, the compiler compiles .cpp and .cxx files as C++ files, and .c and all other unrecognized files as C files.



Summary of Compiler Options