unable to use aes files of openssl in qt creator [duplicate]

流过昼夜 提交于 2019-12-10 23:33:30

问题


I am trying to include AES header file an #include <openssl/aes.h> in Qt4 Creator but while compiling its giving error as openssl/aes.h: No such file or directory. Please tell me how to include to this file so that I can use AES functions in my program?


回答1:


If this is on Linux, add the following into your .pro file:

PKGCONFIG += openssl 

It will handle all necessary header paths, compile-linker options and the libraries.

And make sure you have the openssl-devel package installed in your system.

If this is on Windows, see the duplicate above.



来源:https://stackoverflow.com/questions/22093148/unable-to-use-aes-files-of-openssl-in-qt-creator

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