snucrypto / HEAAN

Other
359 stars 94 forks source link

Tests fail: undefined reference to `NTL::operator<<(std::ostream&, NTL::ZZ const&)' #40

Closed yurivict closed 4 years ago

yurivict commented 4 years ago

The library has an unresolved symbol:

$ nm ./work/HEAAN-2.1-39-gb2edd4c/HEAAN/lib/libHEAAN.so | c++filt | grep operator
                 U NTL::operator<<(std::basic_ostream<char, std::char_traits<char> >&, NTL::ZZ const&)
gamma-2017 commented 4 years ago

Have you compiled and installed NTL properly? NTL is not HEAAN nor part of it, but needed.

yurivict commented 4 years ago

Have you compiled and installed NTL properly?

It is linked with libntl.so but this symbol isn't present there.

gamma-2017 commented 4 years ago

Well, for me it works. Have you added ntl after heaan or before? Order matters.

yurivict commented 4 years ago

after

yurivict commented 4 years ago

This doesn't happen any more.