ladnir / cryptoTools

A repo to hold common tools used by my crypto projects
Other
117 stars 53 forks source link

‘Expects’ was not declared #30

Closed L-coder148 closed 3 years ago

L-coder148 commented 3 years ago

image

L-coder148 commented 3 years ago

hello,I have installed the microsoft/GSL into the default path:/usr/local, and add the #include <gsl/gsl> into IOBuffer.h, but I do not link the library gsl. then I run make seccessfully. I run the ./frontend_cryptoTools -u with the following result. image I run the ./frontend_cryptoTools -tut with the following two results(sometimes hangs,sometimes No buffer ). I do not know whether the two results are all right. but I see the Network.cpp points that By default, ios will print when things so wrong such as a bad buffer size image image

ladnir commented 3 years ago

Yes, I recently removed the gsl. Gsl shouldnt be required and if it is, then that's a bug on my end. I'll investigate.

I haven't run the tutorial is awhile, I'll check it.

ladnir commented 3 years ago

The compile error should be fixed in master.

ladnir commented 3 years ago

ok, the tutorial should also work now. There was some bug with the "BasicSocket" example. I just removed it from the tutorial ha. As far as I know, no one uses it anyways.

L-coder148 commented 3 years ago

Thanks for your reply and patience. I found another strange problem. I install cryptotools successfully, in cryptoTools\Common\Defines.h, it includes the header file "cryptoTools/Common/config.h",but there is no config.h but config.h.in, but it can be compiled successfully.

But when I compile my project(demo) with library cryptotools,I put the library under the project demo, it occurs the following error: image

ladnir commented 3 years ago

Hmm, yeah, likely another bug on my end. I haven't tested install with just cryptoTools. Usually I install via libOTe. As a temporary fix, the config.h file will be written to the binary directory, likely out/build/linux/cryptoTools/config.h

You can copy this to the install dir. I'll debug the install tomorrow.

L-coder148 commented 3 years ago

ok,thank you

ladnir commented 3 years ago

im not getting this error. Seems the config file is installed correctly.

image

L-coder148 commented 3 years ago

Thanks. I will reinstall it later. By the way, is there a interface to get the high_u64or low_u64 from a block. For example,I want to get the high_u64 of m,that is 5. block m=toBlock(5,0);

ladnir commented 3 years ago

block::as<u64>()[0] for low and block::as<u64>()[1] for high.