Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
thanks for the answer.

However I've already included header files.

What I found one fact.

ccm.h is already is included,but some class or parameters such as
class T_BlockCipher, int T_DefaultDigestSize, bool T_IsEncryption> are not active.
other classes or parameters(e.g. CCM_Base etc.) are active.


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

Dear experts,

I'm trying to compile 'driver.cpp' using cryptoLib5.6.0.
actually it is from this site(Crypto++ CCM-AEAD Test).

However, I encountered some compile errors I couldn't solve yet.

how these compile errror can be solved.let me know.
thanks in advance.


----- compile error---------------
Compiling...
Driver.cpp
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(65) : error C2653: 'CCM<class CryptoPP::Rijndael,8>' : is not a class or namespace name
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(65) : error C2065: 'Encryption' : undeclared identifier
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(65) : error C2146: syntax error : missing ';' before identifier 'e'
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(65) : error C2065: 'e' : undeclared identifier
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(66) : error C2228: left of '.SetKeyWithIV' must have class/struct/union type
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(67) : error C2228: left of '.SpecifyDataLengths' must have class/struct/union type
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(132) : error C2653: 'CCM<class CryptoPP::Rijndael,8>' : is not a class or namespace name
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(132) : error C2065: 'Decryption' : undeclared identifier
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(132) : error C2146: syntax error : missing ';' before identifier 'd'
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(132) : error C2065: 'd' : undeclared identifier
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(133) : error C2228: left of '.SetKeyWithIV' must have class/struct/union type
d:\test_encryption\crypto++ ccm-aead test\driver\driver.cpp(134) : error C2228: left of '.SpecifyDataLengths' must have class/struct/union type
Error executing cl.exe.

Driver.obj - 12 error(s), 0 warning(s)
---------------------------------------
Posted
Updated 13-Dec-09 23:44pm
v2

1 solution

Did you include the header files which are needed by your code ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900