Error when compile C++ Interface #1815
Unanswered
namtranlab
asked this question in
Q&A
Replies: 1 comment
-
Hi! After googling it, I resolve the issues by including sstream in the pair_deepmd.cpp Best |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I got the following error when compiling the C++ interface.
[ 66%] Linking CXX shared library libdeepmd_cc_low.so
/scratch/oc95/nt7934/Softwares/deepmd-kit/source/lmp/pair_deepmd.cpp: In member function ‘void LAMMPS_NS::PairDeepMD::print_summary(std::cxx11::string) const’:
/scratch/oc95/nt7934/Softwares/deepmd-kit/source/lmp/pair_deepmd.cpp:276:23: error: aggregate ‘std::stringstream buffer’ has incomplete type and cannot be defined
std::stringstream buffer;
^~~~~~
make[2]: *** [lmp/plugin/CMakeFiles/deepmd_lmp.dir/build.make:104: lmp/plugin/CMakeFiles/deepmd_lmp.dir//pair_deepmd.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 67%] Building CXX object op/CMakeFiles/deepmd_op.dir/neighbor_stat.cc.o
[ 68%] Building CXX object op/CMakeFiles/deepmd_op.dir/pair_tab.cc.o
[ 69%] Building CXX object op/CMakeFiles/deepmd_op.dir/prod_env_mat_multi_device.cc.o
make[1]: *** [CMakeFiles/Makefile2:419: lmp/plugin/CMakeFiles/deepmd_lmp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
How can I solve it? Any suggestion is helpful.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions