问个问题:
我的程序第一次编译的时候, 报错一个, 如下:
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
然后我加上了/Zm2000, 可是还报错, 如下:
fatal error C1063:
Error executing cl.exe.这是怎么回事????是不是和文件的大小有关系, 我的程序是在一个文件里的, 并且处理的数据也比较多, 用到了不少的vector......

解决方案 »

  1.   

    工程属性中 修改default heap大小...
      

  2.   

    The /Zmnumber option determines the compiler's memory allocation limit. The number argument is a scaling factor, with a default value of 100 (that is, 100%). The maximum value is 2000.The compiler uses a number of discrete heaps, each of which has a finite limit. The total of the size limits for all heaps is about 105 MB, but when any one heap is exhausted, the compiler cannot continue. Memory is allocated only as needed; the 105 MB limit is just to keep from using too much memory. Exceeding any one of the discrete-heap size limits occurs only in rare circumstances involving very large or very complex programs. Should your program exceed one of these limits, use /Zm to scale the total size of all the limits. For example, when /Zm200 is specified, the total of all heap size limit is 210MB.Note   In most cases, use of this compiler option is not necessary. Use it if compiling your program causes error message C1076: "compiler limit : internal heap limit reached." 
      

  3.   

    一般是你的 stdafx.h里面的包含有问题。试试去掉一些可以不必包含的头文件