AES_KEY and AES_BLOCK_SIZE cannot be resolved

亡梦爱人 提交于 2019-12-12 00:21:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!