/Td Compiler Option

Syntax: Default:
/Td[c|p] /Td

Use /Td to specify a default language (C or C++) for files.

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

You can change the default as follows:

/Tdc Compile all source and unrecognized files that follow on the command line as C files.
/Tdp Compile all source and unrecognized files that follow on the command line as C++ files.
/Td Return to default

The option applies to all files that follow it on the command line.



Summary of Compiler Options
Compiler Input File Types