When I run my program, the following error occurs. If anyone knows how to solve this error, pls help me. Thanks a lot in advance.

Rgds,
perlsu

fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\nfc_Application.sbr': No such file or directory
Error executing bscmake.exe.

Dani AI

Generated

Short expert summary for (ties to and )

This is an internal compiler error (C1001) from the MSVC front end: it usually means the compiler crashed while translating one translation unit, and the build then fails to produce the per-file browse (.sbr) outputs so BSCMAKE reports BK1506. That BK1506 is a symptom (browse-info missing) rather than the root cause. (stackoverflow.com)

Practical checklist (fast, ordered actions)

  1. Clean all intermediates and rebuild: remove the output/Intermediate folders plus .obj, .pch, .sbr and .bsc, then do a full Rebuild. Strange intermediate corruption often clears the ICE.
  2. Isolate the offending TU: compile source files one-by-one (IDE: right‑click → Compile, or Developer Command Prompt: cl /c MyFile.cpp) until the compiler crashes; that shows which file triggers the ICE.
  3. Try disabling optimizations for the Release build or for the single file: many C1001 cases are triggered by optimization passes. If disabling optimization fixes it, narrow the scope with a pragma (see below) or change the optimization level. Microsoft published hotfixes/workarounds for several optimizer-related C1001s. (stackoverflow.com)

Common quick workarounds (apply while investigating)

  • Turn off browse-info generation if the missing .sbr blocks a clean build temporarily (Project → C/C++ → Browse Information → Disable). BSCMAKE will stop complaining until the compile issue is solved. (stackoverflow.com)

  • Per-function workaround (when optimization triggers the bug):

    #pragma optimize("", off)
    void problematicFunction()
    {
      // keep code here exactly as needed to compile
    }
    #pragma optimize("", on)

    Compiling the TU with /Od or using the pragma often confirms an optimization bug. (stackoverflow.com)

If the problem persists

Update/patch MSVC (many C1001 cases were fixed with service packs or hotfixes) or try a newer toolset/VS build; if the error is reproducible in the current compiler, reduce the source to a minimal repro and report it to Microsoft (attach the repro and the exact cl.exe command line). Microsoft Support articles describe targeted hotfixes for specific C1001 patterns. (support.microsoft.com)

Notes linking to the thread

  • As suggested, the source can be the trigger; start by isolating the TU.
  • As pointed toward MSDN guidance, follow the MS recommendations to simplify the offending code and check for available hotfixes.

These steps resolve the vast majority of C1001 + BK1506 build failures without rewriting large amounts of code.

Recommended Answers

All 2 Replies

Your code has an error that makes the compiler panic. Go find it or post your code so that we can help you find it.

fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\nfc_Application.sbr': No such file or directory
Error executing bscmake.exe.

This is atmost I can do.
http://msdn2.microsoft.com/en-us/library/y19zxzb2.aspx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.