| |

VerySource

 Forgot password?
 Register
Search
View: 1033|Reply: 2

How does VC specify the compiler heap size?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-21 16:30:01
| Show all posts |Read mode
Program error c:\ogresdk\ogrenew\dependencies\include\stlport\stl\type_traits.h (360): fatal error C1076: compiler limit: internal heap limit reached; use / Zm to specify a higher limit
Want to redefine the heap space?
I enter C:\Program Files\Microsoft Visual Studio\VC98\Bin, run cl / Zm200 with parameters, and the compiler reports an error. You need to enter a source and a source file.
Why do I need to specify a source file when setting the compiler heap size?
Reply

Use magic Report

0

Threads

24

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-6-30 15:00:02
| Show all posts
In earlier versions of Visual C++, the compiler used a large number of discrete heaps, each with certain limits. The compiler can now dynamically increase the heap as needed, only requiring the size of the memory allocated to the precompiled header to be fixed. Only in very few cases involving very large or very complex programs will the heap size limit of the precompiled header be exceeded. If the program exceeds these limits, use /Zm to adjust the total size of all limits.

In most cases, this compiler option is not required. Use this option if an error message appears while compiling the program, and the error message reports the value that /Zm should have.

Set this compiler option in the Visual Studio development environment
Open the "Property Page" dialog box for this project. For details, see How to: Open the project property page.

Click the "C/C++" folder.

Click the "Command Line" property page.

Type compiler options in the Additional Options box.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Japan

 Author| Post time: 2020-7-17 13:00:01
| Show all posts
Thank you very much
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list