如何删除 visual studio c++ 项目中单个文件的命令行选项?

How can I remove command line option for single file in the visual studio c++ project?

我尝试使用 _penter() 函数。 这个函数需要“/Gh”选项,所以我在项目文件中添加了“/Gh”选项。 之后,“/Gh”选项应用于包含 _penter() 函数的 cpp 文件, 所以这个函数(_penter)不断地调用自己。 它会导致堆栈溢出。

如果我在一个 cpp 文件中添加“/Gh”选项,效果很好。 但是cpp文件那么多, 所以我尝试在项目文件上申请,但申请一个包含 _penter() 函数的文件。

我用的是visual studio2015版。 有什么办法吗?

您可以直接删除:right click .cpp ->properties -> c/c++ -> All Option -> Additional Options