As the title suggests I'm experiencing a rather odd problem. When I try to compile a sample source code (that uses libotb) I keep getting errors like the one in the title. What is weird is that #include <iostream>
is present in the said source/header where the error is reported.
On the other hand if I extract the code from the said file and create a separate source and compile it with g++ <source_file>
it works, but if I compile with g++ -I<path_to_libotb_headers> <source_file>
I get the same error, although the source file doesn't include anything from said path.
As stated in the below comments, this issue happens with simply
#include <iostream>
int main
{
std::cerr << "Test";
return 0;
}