I have followed the guide "Building headless Bitcoin and Bitcoin-qt on Windows" but with a more recent altcoin source code to test.

The compilation stop on ld.exe: cannot find -lsecp256k1

Is one step missing to generate this missing dll ?

My qt-pro includes:

win32:SECP256K1_LIB_PATH = C:/Crypto/mycrypto/src/secp256k1/
win32:SECP256K1_INCLUDE_PATH = C:/Crypto/mycrypto/src/secp256k1/include

  • Welcome to Bitcoin.SE! That is a fairly old guide for Bitcoin Core v0.9.4, v0.10rc4 or, v0.8.6. Usually, these days compiling Bitcoin Core for Windows is done in an Ubuntu environment or similar (build-windows.md) but, without a link to the altcoin source repository, I cannot even check what its build documents say. Probably it uses lsecp256k1 instead of or as well as secp256k1. – Willtech Mar 13 '18 at 11:37
  • @Willtech thanks for your welcome. I have created two learning coins (the last one is github.com/JustCuriously/locavore) just to see how it work, build an explorer etc... it's of course copy of other old fork but it's to understand the process. The linux qt has been compiled but I'm not able to compile the Windows qt. If a use the new method (build-windows.md) on the old code I will have many depends errors now ? – Boody Mar 14 '18 at 8:14
  • Your standard build instructions are here, do they work? – Willtech Mar 14 '18 at 8:20
  • more or less since I have not been able to compile the Windows version, I have not yet updated the method. I just commit the qt version for linux (with qt5). I'm looking for a complete version of code to study, with MN, POW, POS ... but every time I clone the git source and try to compile something is missing .. it seems that dev have something to hide or don't like to share secret :-) – Boody Mar 14 '18 at 17:15
  • Just out of interest, what happens if addthe two paths for lsecp256k1 just pointing them to secp256k1? – Willtech Mar 14 '18 at 20:46

Problem resolved ! There was an error during the secp256k1 compilation process (MINGW32 under windows), adding:


into the secp256k1/configure.ac has resolved the compilation error.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.