From: John P. <jwp...@gm...> - 2014-09-12 05:33:24
|
On Thu, Sep 11, 2014 at 8:57 AM, Eduardo Hernandez <Edu...@cs...> wrote: > > > Hello John, > > Thank you for your speedy response. I did as you suggested and downloaded the latest development version; sadly it still fails at the make stage, but this time with a different error, still apparently related to talking with petsc... > > CXX src/numerics/libmesh_dbg_la-petsc_matrix.lo > src/numerics/petsc_matrix.C:599:10: error: invalid operands to binary expression ('std::ostream' > (aka 'basic_ostream<char>') and 'ostream' (aka 'basic_ostream<char>')) > if (os == std::cout) > ~~ ^ ~~~~~~~~~ > 1 error generated. > > Any further hints? This line of code has been in the library forever and never given us any trouble, but now that I look at it closely I'm not sure you are allowed to compare two streams for equality like this. Can you try changing that line of code to: if (os.rdbuf() == std::cout.rdbuf()) instead, and see if your compiler likes that any better? http://stackoverflow.com/questions/3318714/check-if-ostream-object-is-cout-or-ofstream-c -- John |