 |
July 30, 2015, 06:18:08 AM |
|
Hi. How I can compile axiomd? Stuck at this point:
key.cpp: In member function CPubKey CKey::GetPubKey() const: key.cpp:487:129: error: cannot convert unsigned char* to secp256k1_pubkey_t* for argument 2 to int secp256k1_ec_pubkey_create(const secp256k1_context_t*, secp256k1_pubkey_t*, const unsigned char*) int ret = secp256k1_ec_pubkey_create(instance_of_csecp256k1.ctx, (unsigned char*)pubkey.begin(), &clen, begin(), fCompressed); ^ key.cpp: In member function bool CKey::Sign(const uint256&, std::vector<unsigned char>&) const: key.cpp:505:169: error: secp256k1_schnorr_sign was not declared in this scope if (secp256k1_schnorr_sign(instance_of_csecp256k1.ctx, (const unsigned char*)&hash, (unsigned char*)&vchSig[0], begin(), secp256k1_nonce_function_rfc6979, NULL)) ^ key.cpp: In member function bool CPubKey::Verify(const uint256&, const std::vector<unsigned char>&) const: key.cpp:552:118: error: secp256k1_schnorr_verify was not declared in this scope if (secp256k1_schnorr_verify(instance_of_csecp256k1.ctx, (const unsigned char*)&hash, &vchSig[0], begin(), size()) != 1) ^ key.cpp: In member function bool CPubKey::Recover(const uint256&, const std::vector<unsigned char>&): key.cpp:562:141: error: secp256k1_schnorr_recover was not declared in this scope if(!secp256k1_schnorr_recover(instance_of_csecp256k1.ctx, (const unsigned char*)&hash, &vchSig[0], (unsigned char*)begin(), &clen, fComp)) ^ key.cpp: In member function bool CPubKey::IsFullyValid() const: key.cpp:617:80: error: secp256k1_ec_pubkey_verify was not declared in this scope if (!secp256k1_ec_pubkey_verify(instance_of_csecp256k1.ctx, begin(), size())) ^ key.cpp: In member function bool CPubKey::Decompress(): key.cpp:628:104: error: secp256k1_ec_pubkey_decompress was not declared in this scope int ret = secp256k1_ec_pubkey_decompress(instance_of_csecp256k1.ctx, (unsigned char*)begin(), &clen); ^ key.cpp: In member function bool CPubKey::Derive(CPubKey&, unsigned char*, unsigned int, const unsigned char*) const: key.cpp:682:134: error: cannot convert unsigned char* to secp256k1_pubkey_t* for argument 2 to int secp256k1_ec_pubkey_tweak_add(const secp256k1_context_t*, secp256k1_pubkey_t*, const unsigned char*) bool ret = secp256k1_ec_pubkey_tweak_add(instance_of_csecp256k1.ctx, (unsigned char*)pubkeyChild.begin(), pubkeyChild.size(), out); ^ make: *** [obj/key.o] Error 1
|