Closed oguz-ismail closed 5 years ago
Could you try using compilation line for linux (the above will only work for MacOS): $ c++ -o jtc -Wall -std=gnu++14 -static -Ofast jtc.cpp
Let me know if it works for you, I'll also update the compile instructions
It works with both GCC and Clang on Ubuntu, thanks. Clang on Termux still gives the same errors, but I think this issue is related to Termux.
it's definitely the problem with the compiler under Termux, b/c errors like:
./lib/shell.hpp:38:25: error: reference to function type cannot have 'const' qualifier const std::string & stdout(void) const { return out_; }
tell that the complier mistakenly "thinks" that a class method (here stdout()) is a function type, which hints that the compiler does not operate in terms of c++.
I've tried both GCC 7.3.0 (on Ubuntu 18.04.1) and Clang 7.0.0 (on Termux) but it doesn't compile, here is the output of Clang: