Open afa32 opened 3 years ago
Got the same error
Which version of Gromacs are you using?
Same error here ! Gromacs v2020.4
Got the same error. Gromacs 2021.2. Ubuntu 20.04. Any suggestions?
Compile against Gromacs 2018. Due to some API breaks in libgromacs 2018, CHAP is not yet compatible with the newer versions of Gromacs.
cmak .. run ok however when i run make i got the following error. i will appreciate any help.
[ 6%] Built target googletest [ 7%] Building CXX object CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o In file included from /usr/local/gromacs/include/gromacs/math/vec.h:111:0, from /home/afa32/local/chap-version_0_9_1/include/geometry/spline_curve_1D.hpp:33, from /home/afa32/local/chap-version_0_9_1/include/aggregation/number_density_calculator.hpp:32, from /home/afa32/local/chap-version_0_9_1/src/aggregation/number_density_calculator.cpp:29: /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: error: ‘remove_cv_t’ is not a member of ‘std’ static_assert(!std::is_pointer<std::remove_cv_t>::value,
^>::value,
^>::value,
^>::value,
^>::value,
^~~~~
/usr/local/gromacs/include/gromacs/math/vectypes.h:96:66: note: suggested alternative: ‘valloc’
static_assert(!std::is_pointer<std::remove_cv_t>::value,
^~~~~
valloc
In file included from /home/afa32/local/chap-version_0_9_1/include/geometry/spline_curve_1D.hpp:33:0,
from /home/afa32/local/chap-version_0_9_1/include/aggregation/number_density_calculator.hpp:32,
from /home/afa32/local/chap-version_0_9_1/src/aggregation/number_density_calculator.cpp:29:
/usr/local/gromacs/include/gromacs/math/vec.h:630:6: error: ‘remove_const_t’ in namespace ‘std’ does not name a template type
std::remove_const_t norm(T v)
^ norm2(T v)
^
~~/usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: note: suggested alternative: ‘remove_cv’ static_assert(!std::is_pointer<std::remove_cv_t~~remove_cv /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: error: ‘remove_cv_t’ is not a member of ‘std’ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: note: suggested alternative: ‘remove_cv’ static_assert(!std::is_pointer<std::remove_cv_t~~remove_cv /usr/local/gromacs/include/gromacs/math/vectypes.h:96:53: error: template argument 1 is invalid static_assert(!std::is_pointer<std::remove_cv_t~~~~ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:66: error: ‘::value’ has not been declared static_assert(!std::is_pointer<std::remove_cv_t~~~~~ /usr/local/gromacs/include/gromacs/math/vec.h:635:6: error: ‘remove_const_t’ in namespace ‘std’ does not name a template type std::remove_const_t~~~~~ CMakeFiles/chap.dir/build.make:107: recipe for target 'CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o' failed make[2]: [CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o] Error 1 CMakeFiles/Makefile2:388: recipe for target 'CMakeFiles/chap.dir/all' failed make[1]: [CMakeFiles/chap.dir/all] Error 2 Makefile:159: recipe for target 'all' failed make: *** [all] Error 2