Hi.
i was on setup for new environment for cravedigger...
on ubuntun 12 on compiling i get these errors.
some ideas how to solve?
secp256k1_ec_privkey_export(const secp256k1_context_t*, const unsigned char*, unsigned char*, int*, int)’
key.cpp: In member function ‘CPubKey CKey::GetPubKey() const’:
key.cpp:505:101: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_pubkey_create(const secp256k1_context_t*, unsigned char*, int*, const unsigned char*, int)’
key.cpp: In member function ‘bool CKey::Sign(const uint256&, std::vector&) const’:
key.cpp:527:134: error: cannot convert ‘const unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ecdsa_sign(const secp256k1_context_t*, const unsigned char*, unsigned char*, int*, const unsigned char*, secp256k1_nonce_function_t, const void*)’
key.cpp: In member function ‘bool CKey::SignCompact(const uint256&, std::vector&) const’:
key.cpp:551:131: error: cannot convert ‘const unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ecdsa_sign_compact(const secp256k1_context_t*, const unsigned char*, unsigned char*, const unsigned char*, secp256k1_nonce_function_t, const void*, int*)’
key.cpp:551:17: warning: unused variable ‘ret’ [-Wunused-variable]
key.cpp: In member function ‘bool CKey::Load(CPrivKey&, CPubKey&, bool)’:
key.cpp:567:90: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_privkey_import(const secp256k1_context_t*, unsigned char*, const unsigned char*, int)’
key.cpp: In member function ‘bool CPubKey::VerifyCompact(const uint256&, const std::vector&) const’:
key.cpp:631:10: warning: unused variable ‘fComp’ [-Wunused-variable]
key.cpp: In member function ‘bool CPubKey::IsFullyValid() const’:
key.cpp:653:52: error: cannot convert ‘const unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_pubkey_verify(const secp256k1_context_t*, const unsigned char*, int)’
key.cpp: In member function ‘bool CPubKey::Decompress()’:
key.cpp:668:76: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_pubkey_decompress(const secp256k1_context_t*, unsigned char*, int*)’
key.cpp: In member function ‘bool CKey::Derive(CKey&, unsigned char*, unsigned int, const unsigned char*) const’:
key.cpp:710:84: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_privkey_tweak_add(const secp256k1_context_t*, unsigned char*, const unsigned char*)’
key.cpp: In member function ‘bool CPubKey::Derive(CPubKey&, unsigned char*, unsigned int, const unsigned char*) const’:
key.cpp:729:106: error: cannot convert ‘unsigned char*’ to ‘const secp256k1_context_t* {aka const secp256k1_context_struct*}’ for argument ‘1’ to ‘int secp256k1_ec_pubkey_tweak_add(const secp256k1_context_t*, unsigned char*, int, const unsigned char*)’
make: *** [obj/key.o] Error 1
Thanks on my debian everything works fine...
you will first need to install secp256k1 to build deamon, someone posted how to do it. thx to someone.