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
  • 90,984
  • 81
  • 374
  • 818

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.
  • 10,765
  • 3
  • 22
  • 24