Bscmake error bk1506

I have converted one of my VS2006 projects into VS2008 and when trying to build the project in VS2008 I get the above error. What is .sbr file ? and how can I fix the compile error? Any help is hug...

I have converted one of my VS2006 projects into VS2008 and when trying to build the project in VS2008 I get the above error. What is .sbr file ? and how can I fix the compile error? Any help is hugely appreciated.

Mihai Limbășan's user avatar

asked Sep 20, 2008 at 20:29

You can go to:
Configuration Properties -> C/C++ -> Browse Information

Remove the Enable Browse Information (Set it to No)

answered Jan 27, 2011 at 12:23

Yochai Timmer's user avatar

Yochai TimmerYochai Timmer

47.4k23 gold badges144 silver badges184 bronze badges

An .sbr file is used to keep the «browse information» for symbol browsing within the projects. It’s created at the same time as its source .cpp file gets complied.

If VS cannot find an .sbr file, it means that the source .cpp was not compiled properly. Try to «rebuild» the project (rather than just «build» it), it may fix the error.

answered Sep 20, 2008 at 21:43

Andrei Belogortseff's user avatar

0

Check (manually) your .vcproj file for a <BrowseFileInformation></BrowseFileInformation> property tag in the configuration section for the configuration you are compiling. If your intermediate directory is the normal $(IntDir), then the empty property is telling the compilation to put the SBR files in the same directory as the source files, but the BSCMAKE command is looking for them in the $(IntDir) directory (and they aren’t there).

Remove the <BrowseFileInformation></BrowseFileInformation> lines in the .vcproj file (you will have to do this by manually editing the file; setting properties in VS2010 or VS2008 won’t do it)

j0k's user avatar

j0k

22.4k28 gold badges80 silver badges89 bronze badges

answered Oct 20, 2012 at 10:08

Keith D's user avatar

Keith DKeith D

511 silver badge2 bronze badges

I get this problem by adding a new class into my project through the VS wizard.

I had to change the location of my «class.cpp» and «class.h», so I copy pasted them into the right directory. Then, I’ve added them into my project through the VS wizard with it’s new path, and I finally get the BSCMAKE error after generating (and regenerating) my project. I had this error just after an other one, saying that my «class.cpp» couldn’t be found.

I get the solution of my problems thanks to SVN. By comparing the current and the original version of my «project.vcproj» file, I realized that the class I added was setted with the old path, so it couldn’t find the right one.

Hence, if you think that your error may have the same origin, what you have to do is:
-Open your «project.vcproj» file in an editor
-Search in the code where the path of your «class.cpp» is setted
-Change it to the right one
-Rebuild your project

It should work then

answered Apr 20, 2011 at 15:13

Yeeehhoo's user avatar

I’m new to c++ and I’m using Visual Studio 2008. I was trying to add a new class to a large program and got the same error (BK1506).

The problem for me was that I had not implemented my class correctly using:

namespace ns
{ 
    class Name
    {
    };
}

Although this most likely wasn’t the reason for your error I would advise people to check this first as the previous answers got me thinking my problem was more advanced than it really was

mathielo's user avatar

mathielo

6,6857 gold badges52 silver badges63 bronze badges

answered Jun 30, 2016 at 12:32

RJo's user avatar

  • Remove From My Forums
  • Question

  • Hi,

    Some times build is failing with «BSCMAKE : error BK1506: Cannot open yyy.sbr file» in VS2013.  I can see this error only after couple of «BSCMAKE
    : warning BK4503″ warnings.  For this I checked MSDN,  but n
    one of the suggestion is failing in my case.

    https://msdn.microsoft.com/en-us/library/4k027wt5.aspx

    From build log:

    c:program files (x86)windows kits8.1includeummshtml.h(37495): warning

    BK4504: file contains too many references; ignoring further references from this source ..win32debug_unicodeexcel.tlh(62245): warning BK4504: file contains too many references; ignoring further references from this source BSCMAKE : warning BK4503: minor
    error in .SBR file ‘Win32Debug(/Release)xxxx.sbr’ ignored BSCMAKE : error BK1506: cannot open file ‘Win32Debug(/Release)yyyy.sbr’

    Regards,

    Parimala Doddi

    • Moved by

      Thursday, December 14, 2017 6:05 AM
      VC++ issue

Aspekt

1

23.05.2009, 01:47. Показов 4715. Ответов 9


———————Configuration: RES — Win32 Debug———————
Compiling…
RESDlg.cpp
c:program filesmicrosoft visual studiomyprojectsresresdlg.cpp(197) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

RESDlg.obj — 1 error(s), 0 warning(s)

Добавлено через 15 минут 37 секунд
и ещё вторую пж
———————Configuration: RES — Win32 Debug———————
Compiling…
RESDlg.cpp
c:program filesmicrosoft visual studiomyprojectsresresdlg.cpp(197) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Creating browse info file…
BSCMAKE: error BK1506 : cannot open file ‘.DebugRESDlg.sbr’: No such file or directory
Error executing bscmake.exe.

RES.exe — 2 error(s), 0 warning(s)

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

6 / 6 / 0

Регистрация: 07.05.2009

Сообщений: 94

23.05.2009, 08:39

2

Это тебе не к нам, а к переводчику.



0



1 / 1 / 2

Регистрация: 29.04.2009

Сообщений: 22

23.05.2009, 08:51

3

эт точно!



0



Aspekt

23.05.2009, 22:12

4

я то думал вы с++ знаете тут ((( просто ошибка выскакивает после компиляции

insolent

829 / 352 / 64

Регистрация: 30.01.2009

Сообщений: 1,204

23.05.2009, 23:57

5

У вас есть такой выбор:

1) бездумно поместить в самое начало .cpp файла с ошибкой

C++
1
#include "stdafx.h"

, бездумно надеясь что это поможет.
2) В настройках отключить использование precompiled header.

нажми

(В опциях проекта, в закладке C/C++ выберите категорию Precompiled headers. Кликните радио кнопку Not using precompiled headers, а затем нажмите OK.)

3) Лучше разобраться и поэкперементировать.

нажми

Есть стандартный среднепаршивый вариант —
для stdafx.cpp говорим create precompiled header stdafx.h
для всех остальных говорим use precompiled header stdafx.h

Это , как правило, сильно ускоряет сборку проекта по сравнению с тем, если бы вообще эти precompiled вообще не использовась.

Остальные варианты могут работать как быстрее, так и медленней, в зависимости от расположения звезд в галактиках boost, stl, DirectX, windows.h а также положения Марса в момент создания твоего проекта.

Добавлено через 2 минуты 49 секунд

Цитата
Сообщение от uto
Посмотреть сообщение

Это тебе не к нам, а к переводчику.

Многому ты научишься в программировании без English`а.



0



6 / 6 / 0

Регистрация: 07.05.2009

Сообщений: 94

24.05.2009, 07:26

6

Цитата
Сообщение от insolent
Посмотреть сообщение

Сообщение от uto

Это тебе не к нам, а к переводчику.

Многому ты научишься в программировании без English`а.

Я не к тому чтобы он учил английский, я к тому, чтобы он описал ошибку более конкретно. Строка где ошибка и сам код



0



insolent

24.05.2009, 12:14

Не по теме:

uto, Я согласен с тобой, что ошибку без кода не решить, но в данной ошибке четко сказано, что проблемы с precompiled header



0



6 / 6 / 0

Регистрация: 07.05.2009

Сообщений: 94

24.05.2009, 13:15

8

Вот вот, надо показывать, ибо все будут как я, даже не взглянут на ошибку)))
Вообщем тема закрыта, вроде сл всем разобрались



0



insolent

24.05.2009, 15:25

Не по теме:

Только никто не поблагодарил меня за помощь:'(



0



6 / 6 / 0

Регистрация: 07.05.2009

Сообщений: 94

24.05.2009, 15:35

10

Меня тоже



0



Article: Q112390
Product(s): Microsoft Fortran Compiler
Version(s): 1.0
Operating System(s): 
Keyword(s): kberrmsg kbLangFortran
Last Modified: 04-MAY-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Fortran Powerstation 32 for Windows NT, version 1.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

An application cannot be rebuilt when its browser file is open. Attempting to do
so generates the following error message:

  BSCMAKE: error BK1506 : cannot open file 'xxxxx.bsc': Permission denied
  BSCMAKE returned code: 4

RESOLUTION
==========

Close the .BSC file and then rebuild the application.

STATUS
======

Microsoft has confirmed this to be a problem in Microsoft FORTRAN PowerStation
for Windows NT, version 1.0. This problem was fixed in Microsoft FORTRAN
PowerStation, version 4.0.

MORE INFORMATION
================

To reproduce this error, do the following:

1. Open a source file by choosing Open from the File menu.

2. Build the executable (make sure you produce browser output) by choosing Build
  from the Project menu.

3. Open the Browser database.

4. Rebuild All.

Additional query words: 1.00

======================================================================
Keywords          : kberrmsg kbLangFortran 
Technology        : kbAudDeveloper kbFortranSearch kbZNotKeyword2 kbFORTRANPower32100NT
Version           : :1.0
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED «AS IS» WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.

See more:

I have converted one of my VS2005 projects into VS2008 and when trying to build the project in VS2008 I get the above error. What is .sbr file ? and how can I fix the compile error? Any help is hugely appreciated.

Comments

Look at your project and its settings to see where this file is referenced.


1 solution

Solution 1

The .sbr files are the output of the compiler, and input for the linker : this means that your ArmesDataManager code file has not been compiled, or has been compiled to another directory that the one where BSCMAKE expects them to be.

See also here : http://msdn.microsoft.com/en-us/library/z6hhww5f.aspx[^]

Comments

I tried but still same error is coming

Have you tried deleting all your output files and rebuild all ?
Is the ArmesDataManager.sbr file somewhere else on your computer ?

Понравилась статья? Поделить с друзьями:
  • Brother mfc 8370dn ошибка 78
  • Bs5443 ошибка мерседес актрос
  • Brother hl2132 error
  • Bs5043 ошибка актрос
  • Brother hl 2132r моргает error