c++ - 在 Visual Studio 中禁用 *.sbr

标签 c++ visual-studio compiler-warnings

我想通过解决方案设置禁用在 Visual Studio 中生成 *.sbr 文件,因为我的项目有很多警告,例如:

BSCMAKE : warning BK4503: minor error in .SBR file 'Foo.sbr' ignored

我使用它有哪些限制和缺点?

最佳答案

SBR 文件包含各个源文件的浏览信息bscmake 然后将其编译成 BSC 文件。直到 2010 年左右的 Visual Studio 版本过去能够在对象浏览器中加载 BSC 文件,例如参见 Using .Bsc Files to Enable Browsing To References of C++ Symbols .如今,我相信 BSC 文件仍然只被一些第 3 方实用程序和扩展程序使用。

要控制 SBR 的生成,请按照 /FR, /Fr (Create .Sbr File) 中的步骤操作:

To set this compiler option in the Visual Studio development environment

  • Open the project's Property Pages dialog box.
  • Click the C/C++ folder.
  • Click the Browse Information property page.
  • Modify the Browse Information File or Enable Browse Information property.

关于c++ - 在 Visual Studio 中禁用 *.sbr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34732089/

相关文章:

c++ - 具有不同类型的多个 vector

c++ - STL 的 set 的 insert 方法是否复制传递对象的值?

c++ - rand() 和 random() 函数有什么区别?

android - Xamarin.Forms 项目中已添加 NuGet 包

delphi - 为什么 "H2077 value assigned to X never used"不会出现在字符串变量中?

用于将结构类型映射到枚举的 C++ 模板?

c++ - Visual Studio 的预编译 header 包含什么?

c++ - 如何修复 Visual Studio 中的 LNK1104 错误?

c++ - 如何确定函数是否在编译时被覆盖?

c - 来自 int 的基本 C 强制转换警告指针