Hugh
Hugh

Reputation: 1212

Visual Studio compile "filter" as C and "filters" groups as C++

I have written the majority of my project in C++. However there are several "filters" or folders which need to be compiled as C and linked to the project. How can I configure this within VStudio? Thanks.

Upvotes: 1

Views: 215

Answers (1)

dirkgently
dirkgently

Reputation: 111210

You can change the Language property by right-clicking on the individual files and setting Configuration Properties > C/C++ > Advanced > Compile As To Compile As C (/TC). No such facility for the filter are present though.

Upvotes: 1

Related Questions