| -----Original Message-----
| From: Frederic Vicher [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, May 07, 2003 9:32 AM
| To: [EMAIL PROTECTED]
| Subject: Crypto++ 5 problems on VC 6.0 ?
| 
| 
| Hello,
| 
| ...
| 
| 1) With Crypto++ 5.1
|
| ...
| 
| I do it and I get the message:
| 
| --------------------Configuration: cryptest - Win32 
| Debug--------------------
| Compiling...
| bench.cpp
| h:\usrprog\crypto51\algparam.h(187) : fatal error C1076: 
| compiler limit : 
| internal heap limit reached; use /Zm to specify a higher limit
| Error executing cl.exe.
| 
| cryptest.exe - 1 error(s), 0 warning(s)
| 
| I tried to use /Zm150, /Zm200, /Zm250, /Zm300 and even 
| /Zm1500. No change.

Hi Frederic,

I had the same problem. However, the /Zm switch fixed the problem. Notice
from above the 'Win32 Debug'. Did you add the /Zm switch to at least the
Debug build? One would enter it as follows:
Select Project->Settings, C/C++ Tab.

Then for each configuration, add the switch /Zm200 in the text box where the
other switches are. /Zm200 is what worked for me. You may be able to go a
bit lower.

Alternately, Wei uses precompiled headers. You may be able to add the
following to the pch.h file:
#pragma comment(linker, "/Zm:200"). I did not try it however.

| Do you know what causes this problem?

>From MSDN:
/Zm   (Specify Memory Allocation Limit)

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

| 
| 
| 2) With Crypto++ 5.0
| The compile and build phases are Ok. Then I tried to test.
| The readme.txt says:
| "Run the test driver and make sure the validation suite passes."
| 
| I do it and I get the message:
| 
| CryptoPP::Exception caught: FileStore: error opening file for 
| reading: 
| H:\usrprog\crypto50\CT_FIPS_140_Debug\edc.dat
| 
| I did not find any edc.dat file in the archive. What's this 
| file? Is it 
| missing or is it to be created before the test?
| 

See http://www.eskimo.com/~weidai/cgi-bin/fom-serve/cache/81.html

Jeff

Reply via email to