zoukankan      html  css  js  c++  java
  • fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786)

    Searching google with query string "compiler file 'msc1.cpp', line 1786" find the following
     reference

    http://owlnext.sourceforge.net/qa51.html


    When template classes or template class header files are included in a precompiled header file, the compiler may generate the following error for files that use the precompiled header:

       fatal error C1001: INTERNAL COMPILER ERROR
          (compiler file 'msc1.cpp', line 1786)
    
       -or-
    
       fatal error C1001: INTERNAL COMPILER ERROR
          (compiler file 'msc1.cpp', line 1188)
                                  

    This error occurs only on machines with the Windows 95 or Windows 98 operating system.

    CAUSE

    The compiler exceeds the allocated memory limit.

    RESOLUTION

    Use one of the following three suggested workarounds:

    Use compiler switch /Zm#nn to increase the compiler's heap memory allocation limit. The default value of #nn is 100 and the maximum value is 2000. Manually add this switch in Developer Studio: under the Project menu, click Setting, the click C/C++, then Project Options. Usually, a value of 1000 works.

    NOTE: You may need to increase the system virtual memory to accommodate the increased #nn for /Zm. 工程| 设置 | “C/C++” | “工程选项"

    -or-

    Remove the template class header files from the precompiled header file.

    -or-

    Use "Automatic use of precompiled headers" (/YX switch), or, "Not using precompiled header."

    STATUS

    Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

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

    Follow the first choice, add string [  /Zm"500" ] into Project Options.
     It works
  • 相关阅读:
    PMD安装使用
    FindBugs安装使用
    Checkstyle安装使用
    SourceMonitor的基本使用教程
    论文选题
    github for Test
    Junit的安装与使用
    安装并使用PICT,生成测试用例
    安装并使用CheckStyle/PMD与FindBug && 安装并使用SourceMonitor检测代码复杂度
    github账号 及文章选题
  • 原文地址:https://www.cnblogs.com/cy163/p/328674.html
Copyright © 2011-2022 走看看