注册 登录
编程论坛 C语言论坛

用VC++6.0编译的时候,下面出现这种情况,是怎么回事,请大神帮帮忙

计算机好难啊 发布于 2020-04-21 10:30, 2577 次点击
Compiling...
147671.cpp
c:\program files (x86)\microsoft visual studio\vc98\include\stdio.h(1) : warning C4182: #include nesting level is 363 deep; possible infinite recursion
c:\program files (x86)\microsoft visual studio\vc98\include\stdio.h(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
执行 cl.exe 时出错.

142671.exe - 1 error(s), 0 warning(s)
请大神帮帮忙,该怎么解决,程序代码没问题。
3 回复
#2
吕孟伟2020-04-21 10:50
是不是没有写递归的结束条件?还是把代码贴出来较好,才能更好得解决问题。
#3
计算机好难啊2020-04-21 11:01
回复 2楼 吕孟伟
大神,无论我用什么程序,只要一执行下面就会出现
--------------------Configuration: 20204211056 - Win32 Debug--------------------
Compiling...
20204211056.cpp
c:\program files (x86)\microsoft visual studio\vc98\include\stdio.h(1) : warning C4182: #include nesting level is 363 deep; possible infinite recursion
c:\program files (x86)\microsoft visual studio\vc98\include\stdio.h(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
执行 cl.exe 时出错.

20204211056.exe - 1 error(s), 0 warning(s)
翻译出来就是
- - - - - - - - - - - - - - - - - - - - - -配置:20204211056 - Win32调试- - - - - - - - - - - - - - - - - - - - -编译…20204211056. cppc:\program files (x86)\microsoft visual studio\vc98\include\stdio.h(1):警告C4182: #include嵌套层深度为363;可能无限递归c:\程序文件(x86)\microsoft visual studio\vc98\包括\stdio.h(1):致命错误C1076:编译器限制:达到内部堆限制;使用/Zm指定更高的限制执行cl.exe时出的错。exe - 1错误,0警告
#4
rjsp2020-04-21 11:36
你有没有使得头文件互相include?
1