Reputation: 39881
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.
Upvotes: 0
Views: 122
Reputation: 941218
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.
Upvotes: 1
Reputation: 18411
Select specific source file(s) and select the compiler yourself.
Properties dialog box (selected option is Advanced):
Upvotes: 3