请教编译选项TP的含义
TP到底是什么含义,看MSDN上说:/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。
这里的all files named on the command line是什么意思,我看我们的commandline里面没有什么文件名啊,如果没有文件名那是不是就会作用于所有的C/C++文件啊。
下面是我们的commandline
/O2 /Ob1 /I "..\dirlib" /I "..\..\..\transcoder\reslib" /I "..\..\..\transcoder\common_lib" /D "WIN32" /D "NDEBUG" /D "MEMFILEIO" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D "_AFXDLL" /D "_ATL_STATIC_REGISTRY" /D "_MBCS" /FD /EHa /MD /Zc:wchar_t- /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /nologo /c /clr:oldSyntax /TP /errorReport:prompt
我们的commandline里面没有任何文件名,那是不是意味着所有的C文件还是用C编译器编译,所有的C++文件还是用C++编译器编译。
我的理解正确吗?
还望高手指正。