http://peanut.egloos.com/1964284

이 글은 위의 사이트에서 퍼왔습니다..

VC++ 6.0 의 경우
메뉴 Projects -> Settings -> C/C++ 탭 선택
아래쪽에 Project Options 라는 곳의 맨 끝에 /Zm(퍼센트값) 을 추가하세요.

VC++ .NET 의 경우
Project properties -> C/C++ -> Commands
Additional Options 에 추가하세요.

퍼센트값에 괄호가 들어가는거 아닙니다. 그리고 100% 일때가 105MB 라네요... 아래에 원문을 참고하세요

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_.2f.zm.asp

/Zm   (Specify Memory Allocation Limit)
Home |  Overview |  How Do I |  Compiler Options

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."

Posted by yyht
,