C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Specifying Source Files
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Tc c-srcfile
              /Tp c++-srcfile
              /Ta asm-srcfile
 
     The /Tc option tells the CL command that <c-srcfile> is a C source
     file regardless of its extension. Use a separate /Tc option for
     each source file with an extension other than .C.
 
     The /Tp option tells the CL command that <c++-srcfile> is a C++
     source file regardless of its extension. Use a separate /Tp option
     for each source file with an extension other than .CPP or .CXX.
 
     The /Ta option tells the CL command that <asm-srcfile> is an
     assembler source file regardless of its extension. Use a separate
     /Ta option for each source file with an extension other than .ASM.
 
     If these options are not used, the default extensions are as
     follows:
 
     File                 Default Extension
 
     C Source             .C
     C++ Source           .CXX, .CPP
     Assembler Source     .ASM
                                    -♦-