Visual Studio Express:致命错误c1060,编译器出了堆空间 [英] Visual Studio Express: fatal error c1060, the compiler is out of heap space

查看:3050
本文介绍了Visual Studio Express:致命错误c1060,编译器出了堆空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从VC 11的源代码构建一个程序,当编译器要完成,它提出了标题中的错误。
正如我在这里和其他论坛,我已经alteady试图关闭尽可能多的程序,可能性和扩大交换文件在Windows中的大小...他们不工作。 p>

我看过一个名为\Zm的参数,但我不明白如何使用它。



你能帮我吗?

解决方案

看看这个可能的解决方案的文档:



https://msdn.microsoft.com/en- us / library / yz7kx3y2.aspx



我也遇到了这个问题,发现文档很有用。要点:



  1. 如果编译器也发出错误C1076和C3859,请使用/ Zm编译器选项内存分配限制。更多堆空间
    可用于您的应用程序,如果您降低剩余内存
    分配。

Zm选项已设置,尝试删除它。堆空间可能
耗尽,因为选项
中指定的内存分配限制太高。如果删除/ Zm
选项,编译器将使用默认限制。


  1. 是在64位平台上编译,请使用64位编译器工具集。有关信息,请参阅如何:在命令行上启用64位Visual C ++
    工具集。


  2. 在32位Windows上, / 3GB boot.ini开关。


  3. 增加Windows交换文件的大小。



  4. 关闭其他正在运行的程序。


  5. 消除未使用的声明。


  6. 将当前文件拆分为较小的文件。




I'm trying to build a program from its source code with VC 11 and when the compiler is going to finish, it raises the error in title. As I've read here and in other forums, I've alteady tried both to close as many programs as possibile and to enlarge the size of the swap file in Windows...they don't work.

I've read about a parameter called \Zm but I don't understand how to use it.

Can you please help me?

解决方案

Take a look at this documentation which gives possible solutions:

https://msdn.microsoft.com/en-us/library/yz7kx3y2.aspx

I also had that problem and found the documentation useful. Main points:

  1. If the compiler also issues errors C1076 and C3859, use the /Zm compiler option to lower the memory allocation limit. More heap space is available to your application if you lower the remaining memory allocation.

If the /Zm option is already set, try removing it. Heap space might be exhausted because the memory allocation limit specified in the option is too high. The compiler uses a default limit if you remove the /Zm option.

  1. If you are compiling on a 64-bit platform, use the 64-bit compiler toolset. For information, see How to: Enable a 64-Bit Visual C++ Toolset on the Command Line.

  2. On 32-bit Windows, try using the /3GB boot.ini switch.

  3. Increase the size of the Windows swap-file.

  4. Close other running programs.

  5. Eliminate unnecessary include files.

  6. Eliminate unnecessary global variables, for example, by allocating memory dynamically instead of declaring a large array.

  7. Eliminate unused declarations.

  8. Split the current file into smaller files.

这篇关于Visual Studio Express:致命错误c1060,编译器出了堆空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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