Skip to content
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

Some issues about the bls.cpp #121

Open
Vageous opened this issue Jun 28, 2023 · 2 comments
Open

Some issues about the bls.cpp #121

Vageous opened this issue Jun 28, 2023 · 2 comments

Comments

@Vageous
Copy link

Vageous commented Jun 28, 2023

Hi, I am new to the miracl. When using this library, I meet some issues about the pairing operation. I first compile miracl follow the first.txt and I choose to bash linux64_cpp. However, when I test the bls.cpp, we meet the following problems.
The problem looks like the miracl.a has not compiled the pairing_3.h? So, how can use the Elliptic curve in miracle?Do I need to modify the file linux64_cpp? Hope you can help me solve this problem.

/usr/bin/ld: /tmp/ccOjDkJI.o: in function main': bls.cpp:(.text+0x34): undefined reference to PFC::PFC(int, csprng*)'
/usr/bin/ld: bls.cpp:(.text+0xc4): undefined reference to PFC::random(G2&)' /usr/bin/ld: bls.cpp:(.text+0xdd): undefined reference to PFC::random(Big&)'
/usr/bin/ld: bls.cpp:(.text+0x101): undefined reference to PFC::mult(G2 const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x149): undefined reference to PFC::hash_and_map(G1&, char*)'
/usr/bin/ld: bls.cpp:(.text+0x16d): undefined reference to PFC::mult(G1 const&, Big const&)' /usr/bin/ld: bls.cpp:(.text+0x294): undefined reference to PFC::hash_and_map(G1&, char*)'
/usr/bin/ld: bls.cpp:(.text+0x2ad): undefined reference to PFC::precomp_for_pairing(G2&)' /usr/bin/ld: bls.cpp:(.text+0x328): undefined reference to PFC::multi_pairing(int, G2**, G1**)'
/usr/bin/ld: bls.cpp:(.text+0x428): undefined reference to PFC::~PFC()' /usr/bin/ld: bls.cpp:(.text+0x548): undefined reference to PFC::~PFC()'
/usr/bin/ld: /tmp/ccOjDkJI.o: in function G1::operator=(G1 const&)': bls.cpp:(.text._ZN2G1aSERKS_[_ZN2G1aSERKS_]+0x37): undefined reference to read_only_error()'
/usr/bin/ld: /tmp/ccOjDkJI.o: in function G2::operator=(G2 const&)': bls.cpp:(.text._ZN2G2aSERKS_[_ZN2G2aSERKS_]+0x44): undefined reference to read_only_error()'
collect2: error: ld returned 1 exit status

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Jun 28, 2023 via email

@Vageous
Copy link
Author

Vageous commented Jun 28, 2023 via email

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