[aspect-devel] Installation error: building object gplates.cc

Wolfgang Bangerth bangerth at math.tamu.edu
Mon May 19 15:16:49 PDT 2014


Sean,

> */aspect-1.0/source/velocity_boundary_conditions/gplates.cc
> <http://gplates.cc>:119:16: **error: **no viable conversion from 'std::ifstream'*
> *      (aka 'basic_ifstream<char>') to 'bool'*
>          return ifile;
>
> This stops the installation. I have pretty limited experience with C++ so
> haven’t had any luck in diagnosing the problem. I am running Xcode 5.1.1, if
> that helps.

Can you see if either of the following two options works:

   return (bool)ifile;

or

   return (ifile.is_open());

?

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth               email:            bangerth at math.tamu.edu
                                 www: http://www.math.tamu.edu/~bangerth/



More information about the Aspect-devel mailing list