View in context in the libbitcoin Slack #general mirror.
CXX examples/examples_libbitcoin_system_examples-main.o
CXXLD src/libbitcoin-system.la
copying selected object files to avoid basename conflicts...
ar: u' modifier ignored since D' is the default (see U')`
CXXLD examples/libbitcoin-system-examples
src/.libs/libbitcoin-system.so: undefined reference to secp256k1_ecdsa_recover'`
src/.libs/libbitcoin-system.so: undefined reference to secp256k1_ecdsa_sign_recoverable'`
src/.libs/libbitcoin-system.so: undefined reference to secp256k1_ecdsa_recoverable_signature_serialize_compact'`
src/.libs/libbitcoin-system.so: undefined reference to secp256k1_ecdsa_recoverable_signature_parse_compact'`
collect2: error: ld returned 1 exit status
Makefile:2438: recipe for target 'examples/libbitcoin-system-examples' failed
make: *** [examples/libbitcoin-system-examples] Error 1
I've secp256k1 library in /usr/local/include/ and headers are stashed at /usr/local/include/include/
Changed the Makefile like below
secp256k1_BUILD_CPPFLAGS = -I/usr/local/include/include
secp256k1_CFLAGS = -I/usr/local/include/include
secp256k1_CPPFLAGS = -I/usr/local/include/include
secp256k1_ISYS_CPPFLAGS = -isystem/usr/local/include
secp256k1_LIBS = -L/usr/local/lib -lsecp256k1
Any help is much appreciated.