vc如何识别c源程序和c++源程序的?
来源:互联网 发布:北邮iptv网络电视 编辑:程序博客网 时间:2024/05/17 07:44
/Tc, /Tp, /TC, /TP (Specify Source File Type)
Home | Overview | How Do I | Compiler Options
Syntax
/Tcfilename
/Tpfilename
/TC
/TP
The /Tc option specifies that filename is a C source file, even if it doesn’t have a .C extension. The /Tp option specifies that filename is a C++ source file, even if it doesn’t have a .CPP or .CXX extension. A space between the option and filename is optional. Each option specifies one file; to specify additional files, repeat the option.
/TC and /TP are "global" variants of /Tc and /Tp. They specify to the compiler to treat all files named on the command line as C source files (/TC) or C++ source files (/TP), without regard to location on the command line in relation to the option. These global options can be overridden on a single file via /Tc or /Tp.
By default, CL assumes that files with the .C extension are C source files and files with the .CPP or the .CXX extension are C++ source files.
Examples
The following CL command line specifies that MAIN.C, TEST.PRG, and COLLATE.PRG are all C source files. CL will not recognize PRINT.PRG.
CL MAIN.C /TcTEST.PRG /TcCOLLATE.PRG PRINT.PRG
The following CL command line specifies that FOO1.C, FOO2.CXX, FOO3.HUH, and FOO4.O are compiled as C++ files, and FOO5.Z is compiled as a C file.
CL FOO1.C FOO2.CXX FOO3.HUH FOO4.O /Tc FOO5.Z /TP
- vc如何识别c源程序和c++源程序的?
- C源程序的关键字
- 遗传算法的C源程序
- C可怕的病毒源程序
- 如何将C++源程序打包
- uip.c源程序
- C源程序优化
- MFC调用C源程序
- C语言 HelloWorld源程序
- crc8 c语言源程序
- crc8 c语言源程序
- 线性规划的源程序(c语言版)
- 实现“九九乘法表”的c语言源程序
- 图形旋转的C语言源程序
- 贪吃蛇的C语言源程序
- 串口监视的源程序代码(C++)
- C语言源程序的结构特点(笔记)
- 一段简单的C/C++病毒源程序
- Encrypt加密类
- 输出500个连续的带国家区号的长电话号码
- JSP动作
- CSS加入到html三種方法
- CListCtrl的简单使用
- vc如何识别c源程序和c++源程序的?
- Oracle10g扩展的帮助文件的安装
- 如何让虚拟目录里面的webconfig不继承网站的设置(转)
- Open flash chart中显示中文
- 使用Dreamweaver编辑Smarty tpl模板文件
- sql函数--将类别表的ID转换成对应的Names
- jQuery 对Select 进行操作
- SQL Access Advisor
- 在sql server中关于游标cursor的使用