Skip to content

Some issues about the bls.cpp #121

@Vageous

Description

@Vageous

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions