fatal error C1001:INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786)
2015-05-06 10:55
716 查看
**重点内容**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:
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.
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
说了一大堆,感觉这个有用,罪恶的vc6,vs就没一点问题
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
说了一大堆,感觉这个有用,罪恶的vc6,vs就没一点问题
将头文件的 #include<iostream> 改成 #include<iostream.h>
相关文章推荐
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- fatal error C1001: INTERNAL COMPILER ERROR(compiler file 'msc1.cpp', line 1786)解决方法
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786)
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- dpkg: error: parsing file '/var/lib/dpkg/updates/0002' near line 0:newline in field name `#padding'
- 'ADB server didn't ACK'的解决办法 , Binary XML file line #...: Error inflating class ...。
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决
- fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1)记录
- Building a project using a generated make file results in error 'make: 1254-055 Dependency line need
- \'Debug/XXX.pch\' is not a precompiled header file created with this compiler Error
- Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64
- $_FILES['userfile']['error']信息说明
- wince6.0 编译报错:"error C2220: warning treated as error - no 'object' file generated"的解决办法
- Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'UInt16' and 'UInt8'
- mac下安装mysql-python包报unable to execute llvm-gcc-4.2: No such file or directory error: command 'llvm-g
- Visual Studio 2013 error LNK1104: cannot open file 'kernel32.lib'