Skip to content

undefined reference to `secp256k1_generator_h' #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FrankC01 opened this issue Jun 23, 2018 · 1 comment
Closed

undefined reference to `secp256k1_generator_h' #26

FrankC01 opened this issue Jun 23, 2018 · 1 comment

Comments

@FrankC01
Copy link
Contributor

Just trying to get up and running, the following:

// Preamble omited

secp256k1_pedersen_commit(none, &commit, blind, val, secp256k1_generator_h);

compiles OK but I get the undefined reference error noted in subject when linking.

Setting it to NULL compiles and links OK.

Is that generator not meant to be used?

@apoelstra
Copy link
Contributor

You need to compile with --enable-module-rangeproof to get this symbol.

In future it will be moved to the generator module where it belongs and be renamed to secp256k1_generator_const_h. This is part of #23 .

tomtau pushed a commit to crypto-com/secp256k1-zkp that referenced this issue Jul 9, 2020
…standard-traits

 Implement Ord for arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants