Skip to content
Discussion options

You must be logged in to vote

Add -DENABLE_MODULE_ECDH:

gcc -o test_ecdh.out ecdh.c ../src/secp256k1.c ../src/precomputed_ecmult.c ../src/precomputed_ecmult_gen.c  -I../include -I../src -I../src/modules/ecdh -DENABLE_MODULE_ECDH

But please, while building manually is possible and we try to make it not too hard, we ship with two common build systems, autoconf+automake and CMake. See the README file. Pick either, and it will generate a working Makefile for you automatically.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@dingchaojie
Comment options

@real-or-random
Comment options

Answer selected by dingchaojie
@dingchaojie
Comment options

@real-or-random
Comment options

@dingchaojie
Comment options

@real-or-random
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1780 on December 09, 2025 07:53.