当编译器两次编译相同的源文件时,读取SBR失败 [英] Reading SBR fails when compiler compiles the same source file twice

查看:97
本文介绍了当编译器两次编译相同的源文件时,读取SBR失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008中有一个中等到大的解决方案,有几个项目,有时编译器会因错误
而停止,因为无法访问SBR文件。  这是因为Visual Studio 2008正在尝试两次编译同一文件。  以下是构建失败的输出...

8> ------构建开始:项目: TestBedLauncher,配置:调试Win32 ------

8>------ Build started: Project: TestBedLauncher, Configuration: Debug Win32 ------

8>编译...

8>Compiling...

8> testBedLauncher.cpp

8>testBedLauncher.cpp

8> testBedLauncher.cpp

8>testBedLauncher.cpp

8> .\testBedLauncher.cpp:致命错误C1083 :无法打开编译器生成的文件:'testBedLauncher_Debug \ testBedLauncher.sbr':权限被拒绝

8>.\testBedLauncher.cpp : fatal error C1083: Cannot open compiler generated file: 'testBedLauncher_Debug\testBedLauncher.sbr': Permission denied

如果我关闭多处理器构建选项,问题就会消失。  是否有修补程序或其他内容?

If I turn off the multiprocessor build option, the problem goes away.  Is there a hotfix or something for this?

我正在运行VS2008,版本9.0.30729.1

I'm running VS2008, Version 9.0.30729.1

 

谢谢,

Phil

推荐答案

嗨Philip ,

 

Sbr文件用于Microsoft Browse Information。默认情况下,在调试或释放模式下禁用"浏览信息"。如果在
项目中启用此功能,请将其关闭以查看它是否可以解决您的问题。您可以找到关于从项目属性页面浏览信息的选项 - >配置属性 - > C / C ++ - >浏览信息 - >启用浏览信息。你可以查看这个
链接
http://msdn.microsoft.com/en-us/library/d5a52hhk%28v=VS.90%29.aspx

  了解更多信息。

Sbr file is used for Microsoft Browse Information. The Browse Information is disable by default in either debug or release mode. If this feature is enable on your project, please turn it off to see whether it solve your issue. You can find the option about Browse Information from Project Property Pages -> Configuration Properties ->C/C++ -> Browse Information ->Enable Browse Information. You can check this link http://msdn.microsoft.com/en-us/library/d5a52hhk%28v=VS.90%29.aspx  for more information.

 

 

问候,

Yi Feng Li

论坛中的MSDN订阅者支持

如果您对我们的支持有任何反馈,请联系
msdnmg@microsoft.com

 

 

 

 


这篇关于当编译器两次编译相同的源文件时,读取SBR失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆