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?
Asked
Active
Viewed 1,505 times
2
jww
- 90,984
- 81
- 374
- 818
user3317814
- 31
- 3
1 Answers
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.
George Y.
- 10,765
- 3
- 22
- 24