Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera tera
|
Aug 6, 2009 - 7:18 PM
|
Hello. My program became gigantic.
It is necessary to appoint /Zm500.
If there is not optional appointment, it is not possible for build. However, I appoint /Zm1000 and build.
Then the following build error comes. Fatal Error C1060
http://msdn.microsoft.com/ja-jp/library/cc396351.aspx The memory capacity of the PC.
Main memory 1GB.
Virtual memory 8GB. Why does this happen?
I do not understand causes well.
|
|
Technical Support
|
Aug 10, 2009 - 6:19 AM
|
The /Zm compiler options specifies how much memory should compiler allocate for compiling a .CPP file. Prof-UIS library becomes enough large and the default amount of memory allocated by the C++ compiler of any supported Visual C++ version is not enough. The /Zm200 option solves this problem. But we used the /Zm512 option because of two reasons: we would like to avoid the compiler’s "not enough memory" problem in the future and the 512 megabytes can be allocated successfully by the C++ compiler when running on the most of computers. The theoretical limit of memory which can be allocated by the 32-bit application is 4 gigabytes. But compilers may have internal implementation limits which does not allow to allocate even 1 gigabyte.
|
|