Closed
Description
I am having trouble compiling with clang on MacOS High Sierra. I get multiple errors about binary operands. For example:
info:build /opt/local/var/macports/build/_Users_fortozs_ports_devel_libff/libff/work/libff-master/libff/algebra/curves/alt_bn128/alt_bn128_pairing.cpp:49:9: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const alt_bn128_Fq2' (aka 'const Fp2_model<alt_bn128_q_limbs, alt_bn128_modulus_q>'))
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1086:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const alt_bn128_Fq2' (aka 'const Fp2_model<alt_bn128_q_limbs, alt_bn128_modulus_q>') to 'const std::__1::error_code' for 2nd argument
:info:build operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
:info:build /opt/local/var/macports/build/_Users_fortozs_ports_devel_libff/libff/work/libff-master/libff/algebra/curves/alt_bn128/alt_bn128_pairing.cpp:55:8: error: invalid operands to binary expression ('std::istream' (aka 'basic_istream<char>') and 'alt_bn128_Fq2' (aka 'Fp2_model<alt_bn128_q_limbs, alt_bn128_modulus_q>'))
Right now I am compiling with -DWITH_PROCPS=OFF and -DIS_LIBFF_PARENT=OFF (I have preinstalled ate-pairing and xbyak detected successfully in the configure phase). I also had to append -std=c++11 to my cxxflags. Any ideas on what these errors are about?
Metadata
Metadata
Assignees
Labels
No labels