Closed juuz0 closed 2 years ago
Hmmm, a few headers includes seem to fail!
Can you reproduce this? I feel it might be an error only on my side, will try a fresh system install if you can't reproduce.
I confirm the issue.
It may be because of https://github.com/kiwix/libkiwix/pull/789 which remove some header which were including iostream and doing using namespace std
(and it was wrong)
@juuz0 Can you do a PR for that ?
@mgautierfr Yes, but it will also require adding #include<iostream
in libkiwix include/version.h
, otherwise kiwix-serve complains about that too. Would that be ok?
Yes, indeed, we need it. include/version.h
uses std::ostream
, so we need to include it.
This is new to me because it always worked before. I have tried to re-clone libkiwix and kiwix-tools too but it still won't work. The workaround is to add
but that was never needed earlier. Environment: Ubuntu 22.04 GCC 11.2.0 Log: