2

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?

jww
  • 97,681
  • 90
  • 411
  • 885

1 Answers1

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.
  • 11,307
  • 3
  • 24
  • 25