#include "hex.h"
#include <iostream>

using namespace std;
using  CryptoPP::HexEncoder;

int  main(){
    string encodedKey = "1234567";
        string key;
        CryptoPP::HexEncoder hexEncoder;
    hexEncoder.Put(encodedKey, 7);
        hexEncoder.MessageEnd();
        hexEncoder.Get(key, 7);
        cout << key << endl;
        return 0;
}
if i compile it with 
g++ -L. -lcryptopp test.cpp i get following errors
test.cpp: In function âint main()â:
test.cpp:29: error: no matching function for call to 
âCryptoPP::HexEncoder::Put(std::string&, int)â
cryptlib.h:785: note: candidates are: size_t 
CryptoPP::BufferedTransformation::Put(byte, bool)
cryptlib.h:788: note:                 size_t 
CryptoPP::BufferedTransformation::Put(const byte*, size_t, bool)
test.cpp:31: error: no matching function for call to 
âCryptoPP::HexEncoder::Get(std::string&, int)â
cryptlib.h:880: note: candidates are: virtual size_t 
CryptoPP::BufferedTransformation::Get(byte&)
cryptlib.h:882: note:                 virtual size_t 
CryptoPP::BufferedTransformation::Get(byte*, size_t)

WebRep
Overall rating
 

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to