我正在尝试从源代码编译libgtextutils(fastxtoolkit所需).'./configure'命令运行良好,但随后的'make'命令会产生一个我无法解决的错误.
text_line_reader.cpp: In member function ‘bool TextLineReader::next_line()’:
text_line_reader.cpp:47:9: error: cannot convert ‘std::istream {aka std::basic_istream<char>}’ to ‘bool’ in return
return input_stream ;
^~~~~~~~~~~~
make[3]: *** [text_line_reader.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
我在Mac上,OSX 10.11.6(英特尔)
任何可能解决此问题的建议都受到高度赞赏.