简体   繁体   English

Visual Studio将“过滤器”编译为C,将“过滤器”组编译为C ++

[英]Visual Studio compile “filter” as C and “filters” groups as C++

I have written the majority of my project in C++. 我已经用C ++编写了大部分项目。 However there are several "filters" or folders which need to be compiled as C and linked to the project. 但是,有几个“过滤器”或文件夹需要编译为C并链接到项目。 How can I configure this within VStudio? 如何在VStudio中进行配置? Thanks. 谢谢。

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) . 您可以通过右键单击单个文件并设置Configuration Properties > C/C++ > Advanced > CompileCompile As C (/TC)来更改语言属性。 No such facility for the filter are present though. 但是,没有此类用于过滤器的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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