简体   繁体   中英

Visual Studio 2012 compile .c files as cpp files

I can set visual studio to compile .c files as cpp files as described here: http://msdn.microsoft.com/en-us/library/032xwy55.aspx But this is a compiler option. I wonder if there is a way to point several .c files only and not to effect on compilation option in general.

Select specific source file(s) and select the compiler yourself.

Properties dialog box (selected option is Advanced ):

This is a per-file option, it doesn't necessarily apply to every .c file in your project. Just right-click the file in the Solution Explorer window to make it selective. Note that you can hold down the Ctrl key while clicking files to set this option on a group of files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM