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

I'm having problems running 1test.cpp。 #128

Open
zxcvbxzx opened this issue Mar 5, 2024 · 8 comments
Open

I'm having problems running 1test.cpp。 #128

zxcvbxzx opened this issue Mar 5, 2024 · 8 comments

Comments

@zxcvbxzx
Copy link

zxcvbxzx commented Mar 5, 2024

I'm having problems running 1test.cpp,The static libraries that have been compiled are libmiracl。I put 1test.cpp, libmiracl and related header files in the same directory,When I run it with the command : g++ 1test.cpp libmiracl.a I get the error。
image
My 1test.cpp code is as follows:
image

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Mar 5, 2024 via email

@zxcvbxzx
Copy link
Author

zxcvbxzx commented Mar 5, 2024

Thank you very much for your answer! It solved my problem perfectly!But I don't know what the exact reason is, if I could trouble you to tell me.

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Mar 5, 2024 via email

@zxcvbxzx
Copy link
Author

zxcvbxzx commented Mar 7, 2024

The missing functions are implemented in big.cpp

On Tue, Mar 5, 2024 at 2:54 PM zxcvbxzx @.> wrote: Thank you very much for your answer! It solved my problem perfectly!But I don't know what the exact reason is, if I could trouble you to tell me. — Reply to this email directly, view it on GitHub <#128 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDQ3DFS2FZTBX3TW7ZTYWWP67AVCNFSM6AAAAABEGR4M46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGQ4DOMJZGM . You are receiving this because you commented.Message ID: @.>

tanks for your answer!I see the relevant code running,no need to bring source code like big.cpp or anything like that.I'm wondering if there was a problem when I compiled the static library.For example, when I run the sample code ecsign.cpp from the miracl library,Similar problems have arisen:
image
When I bring up big.cpp on the command line,run successfully,but the following error is displayed:

@zxcvbxzx
Copy link
Author

zxcvbxzx commented Mar 7, 2024

image

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Mar 7, 2024 via email

@zxcvbxzx
Copy link
Author

zxcvbxzx commented Mar 7, 2024

First generate key pair, before signing g++ ecsgen.cpp ecn.cpp big.cpp miracl.a -o ecsgen ./ecsgen

On Thu, Mar 7, 2024 at 3:45 PM zxcvbxzx @.> wrote: image.png (view on web) https://github.com/miracl/MIRACL/assets/116177581/de01fe21-7663-4ec7-b65a-8e17538fb882 — Reply to this email directly, view it on GitHub <#128 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDUK45AKDH2AJOWVWHTYXBHL5AVCNFSM6AAAAABEGR4M46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTGMZTOMZSG4 . You are receiving this because you commented.Message ID: @.>

I tried your command and it ran successfully. Thank you very much for your answer!

@zxcvbxzx
Copy link
Author

zxcvbxzx commented Mar 9, 2024

I have written a programme to test the hash function. The code is as follows, it compiles successfully under g++, but the following error occurs when I run the programme, I would like to know what the reason is and how to change it.
image
image

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