Hello,

I'm using VS2005 Pro on WinXP. I'd like to disable C language extensions,
such as allowing dollar signs in identifiers and allowing C++ style comments.
When I set the /Za switch in the IDE project properties it rejects these
extensions, as desired. However, when I use the command line compiler it
ignores /Za. Here's a sample command line (whose arguments/switches I copied
directly from the IDE, minus the debug file stuff):

cl /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_VC80_UPGRADE=0x0710" /D
"_MBCS" /Gm /EHsc /RTC1 /MTd /Za /W4 /nologo /c /Wp64 /ZI /TP
/errorReport:prompt MyProgram.c


Thanks,
Ray Mitchell

RE: MY MISTAKE! - Command line C compiler ignores /Za switch? by RayMitchell_NOSPAM_

RayMitchell_NOSPAM_
Thu Oct 25 17:29:01 PDT 2007



"Ray Mitchell" wrote:

> Hello,
>
> I'm using VS2005 Pro on WinXP. I'd like to disable C language extensions,
> such as allowing dollar signs in identifiers and allowing C++ style comments.
> When I set the /Za switch in the IDE project properties it rejects these
> extensions, as desired. However, when I use the command line compiler it
> ignores /Za. Here's a sample command line (whose arguments/switches I copied
> directly from the IDE, minus the debug file stuff):
>
> cl /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_VC80_UPGRADE=0x0710" /D
> "_MBCS" /Gm /EHsc /RTC1 /MTd /Za /W4 /nologo /c /Wp64 /ZI /TP
> /errorReport:prompt MyProgram.c
>
>
> Thanks,
> Ray Mitchell

Sorry, but I didn't notice that the /TP got in there somehow! Thanks
anyway! Ray