snucrypto/HEAAN

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

Closed this issue · 6 comments

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

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&)

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

Have you compiled and installed NTL properly?

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

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

after

This doesn't happen any more.