我用vc6.0 编译程序,出现如下错误。
fatal error C1001: INTERNAL COMPILER ERROR(compiler file 'msc1.cpp', line 1786)我在网上搜索了一些资料,说的大概是内存什么的...,但总说的不明白,问题还不能解决。我的程序确定没问题,我用内存是128的,xp系统。请高手详细说明一下解决方法。

解决方案 »

  1.   

    fatal error C1001 
      
    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
     
    This error occurs only on machines with the Windows 95 or Windows 98 operating system. 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."