I am trying to add libcryptopp library to my contract but when I try to compile with eosio-cpp I get an error that header files cannot be found.
This is my code:
#include <eosiolib/eosio.hpp>
#include "cryptopp/integer.h"
#include "cryptopp/sha.h"
#include "cryptopp/cryptlib.h"
#include "cryptopp/files.h"
#include "cryptopp/hex.h"
using namespace CryptoPP;
class[[eosio::contract]] p2pgaming : public eosio::contract
{
public:
using contract::contract;
p2pgaming(eosio::name receiver, eosio::name code, eosio::datastream<const char *> ds) : contract(receiver, code, ds){}
[[eosio::action]]
void printsha(std::string message)
{
SHA256 hash;
std::string digest;
StringSource s(message, true, new HashFilter(hash, new HexEncoder(new StringSink(digest))));
eosio::print(digest);
}
};
EOSIO_DISPATCH(p2pgaming, (printsha))