./autogen.sh
./configure
make
sudo make install
Still having this error even after compiling secp256k1
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -DUSE_SECP256K1 -I/root/nodex/src -I/root/nodex/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/root/nodex/src/leveldb/include -I/root/nodex/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/key.d -o obj/key.o key.cpp
key.cpp: In member function ‘bool CKey::SignCompact(const uint256&, std::vector&) const’:
key.cpp:552:17: warning: unused variable ‘ret’ [-Wunused-variable]
if (int ret = secp256k1_ecdsa_sign_compact(instance_of_csecp256k1.ctx, hash.begin(), &vchSig[1], begin(), secp256k1_nonce_function_rfc6979, NULL, &rec))
^
key.cpp: In member function ‘bool CPubKey::VerifyCompact(const uint256&, const std::vector&) const’:
key.cpp:632:10: warning: unused variable ‘fComp’ [-Wunused-variable]
bool fComp = IsCompressed();
^
key.cpp: In member function ‘bool CPubKey::Decompress()’:
key.cpp:669:104: error: cannot convert ‘int*’ to ‘unsigned char*’ for argument ‘3’ to ‘int secp256k1_ec_pubkey_decompress(const secp256k1_context_t*, const unsigned char*, unsigned char*, int*)’
int ret = secp256k1_ec_pubkey_decompress(instance_of_csecp256k1.ctx, (unsigned char*)begin(), &clen);
^
make: *** [obj/key.o] Error 1