I’m a tad stuck now using secp256k1 on Windows which makes life harder. I have compiled GMP-6.0.0a and used the static lib to compile secp256k1. Everything goes without fault. However when I use the secp256k1 in a coin I get the errors below when compiling. Any help with this would be appreciated, I have tried linking lgmp straight into the client to see if this resolves the issue without joy.
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_sub': c:/mingw32/i686-w64-mingw32/include/gmp.h:2168: undefined reference to
__gmpn_sub_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2168: undefined reference to __gmpn_sub_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_num_set_bin’:
c:\deps\secp256k1/src/num_gmp_impl.h:73: undefined reference to __gmpn_set_str' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_num_shift’:
c:\deps\secp256k1/src/num_gmp_impl.h:267: undefined reference to __gmpn_rshift' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
Makefile.Release:303: recipe for target ‘release\deepcoin-qt.exe’ failed
mingw32-make[1]: Leaving directory ‘E:/GitHub/build-deepcoin-qt-Desktop_4_8_5-Release’
Makefile:34: recipe for target ‘release’ failed
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_fe_reduce’:
c:\deps\secp256k1/src/field_gmp_impl.h:133: undefined reference to __gmpn_addmul_1' c:\deps\secp256k1/src/field_gmp_impl.h:134: undefined reference to
__gmpn_addmul_1’
c:\deps\secp256k1/src/field_gmp_impl.h:137: undefined reference to __gmpn_mul_1' c:\deps\secp256k1/src/field_gmp_impl.h:140: undefined reference to
__gmpn_addmul_1’
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_sqr': c:\deps\secp256k1/src/field_gmp_impl.h:159: undefined reference to
__gmpn_sqr'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul': c:\deps\secp256k1/src/field_gmp_impl.h:151: undefined reference to
__gmpn_mul_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_num_mod_inverse': c:\deps\secp256k1/src/num_gmp_impl.h:144: undefined reference to
__gmpn_gcdext'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_sub': c:/mingw32/i686-w64-mingw32/include/gmp.h:2168: undefined reference to
__gmpn_sub_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_num_get_bin': c:\deps\secp256k1/src/num_gmp_impl.h:58: undefined reference to
__gmpn_get_str'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_num_mul': c:\deps\secp256k1/src/num_gmp_impl.h:231: undefined reference to
__gmpn_mul'
c:\deps\secp256k1/src/num_gmp_impl.h:235: undefined reference to __gmpn_copyi' c:\deps\secp256k1/src/num_gmp_impl.h:229: undefined reference to
__gmpn_mul'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_num_mod': c:\deps\secp256k1/src/num_gmp_impl.h:108: undefined reference to
__gmpn_tdiv_qr'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul_int': c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul_int': c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul_int': c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul_int': c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_fe_mul_int’:
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_fe_mul_int’:
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_fe_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_fe_mul_int’:
c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to __gmpn_mul_1' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o):c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: more undefined references to
__gmpn_add_n’ follow
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function secp256k1_fe_mul_int': c:\deps\secp256k1/src/field_gmp_impl.h:116: undefined reference to
__gmpn_mul_1'
C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function _gmpn_add': c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
secp256k1_num_split’:
c:\deps\secp256k1/src/num_gmp_impl.h:350: undefined reference to __gmpn_copyi' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_add’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to
__gmpn_add_n'
c:/mingw32/i686-w64-mingw32/include/gmp.h:2129: undefined reference to __gmpn_add_n' C:/deps/secp256k1/.libs\libsecp256k1.a(libsecp256k1_la-secp256k1.o): In function
_gmpn_sub’:
c:/mingw32/i686-w64-mingw32/include/gmp.h:2168: undefined reference to `__gmpn_sub_n'