I saw this was brought up in another thread but I just wanted to make sure I got this right. I am using plane-jane mingw/msys on winxp (don't shoot me) and the only error I get while running make is:
g++ -DNDEBUG -g -O2 -pipe -c rijndael.cpp rijndael.cpp: In member function `virtual size_t CryptoPP::Rijndael::Enc::AdvancedProcessBlocks(const byte*, const byte*, byte*, size_t, CryptoPP::word32) const': rijndael.cpp:945: error: `alloca' was not declared in this scope make: *** [rijndael.o] Error 1 I did some searching and supposedly stdlib.h has alloca, but that is the not the case for my compiler and tool set (using g++ 3.4.5 and msys 1.0). So I just changed line 945 from: space = (byte *)alloca(255+sizeof(Locals)); to space = (byte *)malloc(255+sizeof(Locals)); It compiled fine. I have not tested the function. What is the difference between alloca and malloc? I see none and read that alloca is ancient and should be put to rest. Let me know if this is a no-no. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
