Browse information is not available for this project 的烦恼

来源:互联网 发布:夏普电视不好吗 知乎 编辑:程序博客网 时间:2024/05/16 09:10

看公司的代码,突然对出现下列消息很烦.

总是在我调试的时候,转到定义时候弹出警告,主要是:"

Browse information is not available for this project "

去搜索下,找到解决办法了,

其实很简单,原来偶尔遇到这类问题,没有怎么在意,原来可以这么轻松解决啊.

在 Visual c + +.net,您必须单击以选择单个项目选项以创建 BSC 文件:

  1. 在解决方案资源管理器窗口中右键单击该项目问题 (注意解决方案可以包含多个项目),,然后再单击 属性
  2. 属性页 对话框中单击以选中 常规 部分。
  3. 常规 部分中找到 生成浏览器信息 属性,然后从 更改设置。
  4. 重新生成项目,创建 BSC 文件。

注意有关如何生成在 Visual c + + 2005年中的.bsc 文件的详细信息请访问下面的 Microsoft 网站:

http://msdn2.microsoft.com/en-us/library/1cf33ehd(en-US,VS.80).aspx (http://msdn2.microsoft.com/en-us/library/1cf33ehd(en-US,VS.80).aspx)

在早期版本的 Visual c + + 中,您必须单击在生成设置中选择两个复选框:

  1. 在主菜单上选择 生成 / 设置
  2. 选择 C/c + + 选项卡,选中 生成浏览信息 框。这会告诉编译器生成的中间 SBR 文件为每个源代码文件。
  3. 选择 浏览信息 选项卡,选中 生成浏览信息文件 框。若要生成 BSC 文件生成一个项目时,这将调用 BSCMAKE 实用程序。

英文的解答是:

In Visual C++ .NET, you must click to select a single project option to create the BSC file:
  1. In the Solution Explorer window, right-click the project in question (note that solutions can contain more than one project), and then click Properties.
  2. In the Property Pages dialog box, click to select the General section.
  3. Locate the Build Browser Information property in the General section, and then change the setting from No to Yes.
  4. Rebuild your project to create the BSC file.
Note For more information about how to build a .bsc file in Visual C++ 2005, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/1cf33ehd(en-US,VS.80).aspx (http://msdn2.microsoft.com/en-us/library/1cf33ehd(en-US,VS.80).aspx)
In earlier versions of Visual C++, you must click to select two check boxes in the build settings:
  1. On the main menu, select Build/Settings.
  2. Select the C/C++ tab. Select the Generate browse info box. This tells the compiler to generate an intermediate SBR file for each source file.
  3. Select the Browse Info tab. Select the Build browse info file box. This invokes the BSCMAKE utility when a project is built to generate a BSC file.