[vtkusers] Help: VTK in Visual C++6 Compiling errors!

Arsene ELLA ella at pet.mpin-koeln.mpg.de
Mon Feb 25 07:59:15 EST 2002


Hi users,


When compiling every program using VTK includes files (even vtk examples)
on microsoft Visual C++6, I have the following error message:

-------------------------------------------------------
c:\program files\microsoft visual studio\vc98\include\ostream(353) : fatal 
error C1076: compiler limit : internal heap limit reached; use /Zm to 
specify a higher limit
Error executing cl.exe.


About this message error, Visual C++ Help said:

Fatal Error C1076
compiler limit : internal heap limit reached; use /Zm to specify a higher limit
The compiler ran out of storage for items that it stores in its heap. 
Usually this is the result of having too many symbols.
One of the following may be a solution:
·       Use the ·       /Zm compiler option to set the compiler's memory 
allocation limit.

·       Simplify the program:
·       Eliminate unnecessary include files, especially unneeded #defines 
and function prototypes.

·       Eliminate some global variables. For instance, use a pointer to 
allocate memory dynamically, at run time, instead of declaring a large array.

·       Eliminate unused declarations.

·       Break up very large functions into smaller ones.

·       Break up very large classes into smaller ones.

·       Split the current file into two or more files and compile them 
separately.
Note If you get this error message immediately upon starting the build 
process, you have probably specified too high a value for /Zm, given the 
specific details of your program. Change the /Zm value to a lower one and 
re-run the build.

---------------------------------------------


It worth almost nothing to change the Zm value as it change from one 
program to another.
This error comes probably from the headers file includes......

Does somebody have an idea?

thanks in advance,

Arsene



Arsene ELLA, PhD
Max-Planck Institut Für Neurogische Forschung
Gleueler str, 50
D-50931 Cologne
GERMANY
Tel:   (+49) 221 478 5713
Mob: (+49) 174 320 7881
Fax:  (+49) 221 478 7256
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020225/9061e1fb/attachment.htm>


More information about the vtkusers mailing list