问题
I wish to run a C program(works fine using gcc) on android. I have installed ndk for eclipse and have setup the basic things correctly. I have linked openssl library(.so files) to the project. Methods such as AES_set_encrypt_key
aren't facing any issue but I am getting error at AES_KEY/AES_BLOCK_SIZE
saying type/symbol cannot be resolved
. How to fix this?
Thanks
回答1:
I found the solution. There was a problem with the extern
statements in aes.h
header file in eclipse IDE. As I was using it in a C code, these aren't required. Once I removed them, the problem got solved!
来源:https://stackoverflow.com/questions/33021335/aes-key-and-aes-block-size-cannot-be-resolved