Microsoft KB Archive/208155

= PRB: BK1503 when Building Large .bsc File =

Article ID: 208155

Article Last Modified on 12/11/2003

-

APPLIES TO


 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q208155



SYMPTOMS
When building a large browser database, or .bsc file, the following error may occur:

BK1503: cannot write to file 'filename'



CAUSE
During compilation the compiler stores browser information for each source file in a corresponding .sbr file. BSCMAKE combines the .sbr files generated during compilation into one browser database. If the resulting browser database exceeds 64 MB or if the number of input files the compiler processes (source and headers) exceeds 4086 this error will be emitted by BSCMAKE.



RESOLUTION
If the problem is caused by the number of input files exceeding 4086, the only way to work around this problem is to reduce the number of source files the compiler generates browse information for. From Visual Studio, this can be accomplished by clearing Generate Browse Info on the C/C++ tab in Project Settings for your entire project, then select on a file by file basis.

If the problem is caused by the size of the .bsc file exceeding 64MB, then reducing the number of input files will decrease the size of the resulting .bsc file. The size of the .bsc file may also be reduced through the use of /Em (Exclude Macro Expanded Symbols), /El (Exclude Local Variables), and /Es (Exclude System Files). The /E options can be added manually to the Project Options on the BSCMAKE tab of the Project Settings dialog.



STATUS
This behavior is by design.

Additional query words: kbDSupport

Keywords: kbmisctools kbprb KB208155

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.