致命错误C1001:INTERNAL COMPILER ERROR(编译器文件'msc1.cpp',第1794行) [英] fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794)

查看:951
本文介绍了致命错误C1001:INTERNAL COMPILER ERROR(编译器文件'msc1.cpp',第1794行)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Visual Studio 6 SP6编译项目并获得以下内容:

I tried to compile a project with Visual Studio 6 SP6 and got the following:

usbcore.h(18) : 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

usbcore.h的第18行包含include指令:

Line 18 of usbcore.h contains the include directive:

18: #include "usbiface.h"

空或不存在的usbiface.h产生相同的错误。我评论了这一行并得到了相同的错误但是对于下一个包含文件。

Empty or non-existing usbiface.h produces the same error. I commented this line and got the same error but for the next include file.

总结一下:每个<编译错误 #include 指向公共项目标题的指令。

To sum this up: the compiler error occurs for each #include directive that refers to the common project headers.

推荐答案

我想过是什么导致了这个错误。其中一个包含路径(使用/ I开关传递给编译器)有一个尾部反斜杠。

I figured out what caused that error. One of the include paths (passed to a compiler with the /I switch) had a trailing backslash.

编译器cmdline为: CPP / nologo / MT / W3 / GX / Zi / Od / I$(ZLIB_PATH)/ I.. \ theaders

The compiler cmdline is: CPP /nologo /MT /W3 /GX /Zi /Od /I "$(ZLIB_PATH)" /I "..\headers"

ZLIB_PATH 有一个尾随反斜杠。删除该反斜杠解决了这个问题。

and ZLIB_PATH had a trailing backshlash. Removing that backslash solved the problem.

这篇关于致命错误C1001:INTERNAL COMPILER ERROR(编译器文件'msc1.cpp',第1794行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆