evaleev / libint

Libint: high-performance library for computing Gaussian integrals in quantum mechanics
Other
226 stars 95 forks source link

needs `#include <limits>` in `include/libint2/numeric.h` #115

Closed hongzhouye closed 5 years ago

hongzhouye commented 5 years ago

Hi Professor Valeev,

I found this error popping up when compiling on our group cluster (Ubuntu 18.04 LTS)

/home/hzye2011/opt_local/libint/src/lib/libint/../../../include/libint2/numeric.h:110:17: error: no
      member named 'numeric_limits' in namespace 'std'
    return std::numeric_limits<Real>::epsilon();

This stack overflow question suggests it could be solved by adding #include <limits> to that file, and it will not occur on a macbook since OSX is smart and automatically include that header file for you.

Hope this helps!

Best, Hongzhou