Share via


Creating an .SBR File

OverviewsHow Do I

The input files for BSCMAKE are .SBR files. The compiler creates an .SBR file for each object file (.OBJ) it compiles. When you build or update your browse information file, all .SBR files for your project must be available on disk.

To create an .SBR file with all possible information, specify Generate Browse Info in the Project Settings dialog box (or /FR).

To create an .SBR file that doesn’t contain local symbols, specify Generate Browse Info, and then check Exclude Local Variables from Browse Info (/Fr on the compiler command line). If the .SBR files contain local symbols, you can still omit them from the .BSC file by using BSCMAKE’s /El option.

You can create an .SBR file without performing a full compile. For example, you can specify the /Zs option to the compiler to perform a syntax check and still generate an .SBR file if you specify /FR or /Fr.

The build process can be more efficient if the .SBR files are first packed to remove unreferenced definitions. The compiler automatically packs .SBR files. An unpacked .SBR file is required if you want to use the /Iu option with BSCMAKE to include unreferenced symbols in the .BSC file. If you want to prevent packing, specify /Zn on the compiler command line.