If you installed the library as you said (using apt-get
), then try this:
#include <crypto++/aes.h>
#include <crypto/modes.h>
Instead of this:
#include "aes.h"
#include "modes.h"
You should use the #include <crypto++/...>
because Ubuntu installs them in its "system", which means the preprocessor will look in particular places in a particular order when processing them. Also see What is the difference between #include and #include “filename”?.
Also note that on Fedora and Red Hat, you would use #include <cryptopp/...>
, not #include <crypto++/...>
. If you are targeting multiple operating systems for Crypto++, then see How to change the include file path with autotools?.