报错内容如下:
/root/下载/sob/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:62: 错误:‘numeric_limits’不是‘std’的成员
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits<int>::max(), "The axis length in units of sigma should fit in an int");
| ^~~~~~~~~~~~~~
/root/下载/sob/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: 附注:in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 : \
| ^~~~~~~~~
/root/下载/sob/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:77: 错误:expected primary-expression before ‘int’
137 | ASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits<int>::max(), "The axis length in units of sigma should fit in an int");
| ^~~
/root/下载/sob/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: 附注:in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 : \
| ^~~~~~~~~
/root/下载/sob/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:77: 错误:expected ‘)’ before ‘int’
137 | ASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits<int>::max(), "The axis length in units of sigma should fit in an int");
| ^~~
/root/下载/sob/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: 附注:in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 : \
| ^~~~~~~~~
/root/下载/sob/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:14: 附注:to match this ‘(’
67 | ((void) ((condition) ? (void)0 : \
| ^
/root/下载/sob/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:9: 附注:in expansion of macro ‘GMX_RELEASE_ASSERT’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits<int>::max(), "The axis length in units of sigma should fit in an int");
| ^~~~~~~~~~~~~~~~~~
/root/下载/sob
为参加这几天的分子动力学培训班,我在win 11笔记本的VMware 16.1.1上Rocky Linux 9.3虚拟机中用gcc 11.4.1编译GROMACS 2018.8,也遇到同样的以" 'numeric_limits' is not a member of 'std' "开头的一串报错,按上述方法修改后即可成功编译。