Error: undefined reference to `LAMMPS_NS::AngleCharmm::AngleCharmm

Dear LAMMPS Users

I try to install LAMMPS (version 15th May 2015) via the attached Makefile but have encountered the following error:

force.o: In function LAMMPS_NS::Force::create_angle(char const*, int)': ../force.cpp:(.text+0x7205): undefined reference to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)’
…/force.cpp:(.text+0x7319): undefined reference to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)' ../force.cpp:(.text+0x76e6): undefined reference to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)’
force.o: In function LAMMPS_NS::Force::new_angle(char const*, int, int&)': ../force.cpp:(.text+0x7d2a): undefined reference to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)’
…/force.cpp:(.text+0x7e82): undefined reference to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)' force.o:../force.cpp:(.text+0x81cc): more undefined references to LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)’ follow
make[1]: *** […/lmp_hpcibex01_15thMay15_intel] Error 1
make[1]: Leaving directory `/lustre04/vol0/lili3p/lammps-15May15/src/Obj_hpcibex01_15thMay15_intel’
make: *** [hpcibex01_15thMay15_intel] Error 2

The same source codes do not cause any problems in other places so I am confused by what settings might have caused this error appearing.

Many Thanks

Best Wishes
Lunna

Makefile.hpcibex01_15thMay15_intel (2.9 KB)

Dear LAMMPS Users

I try to install LAMMPS (version 15th May 2015) via the attached Makefile
but have encountered the following error:

force.o: In function `LAMMPS_NS::Force::create_angle(char const*, int)':
../force.cpp:(.text+0x7205): undefined reference to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)'
../force.cpp:(.text+0x7319): undefined reference to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)'
../force.cpp:(.text+0x76e6): undefined reference to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)'
force.o: In function `LAMMPS_NS::Force::new_angle(char const*, int, int&)':
../force.cpp:(.text+0x7d2a): undefined reference to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)'
../force.cpp:(.text+0x7e82): undefined reference to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)'
force.o:../force.cpp:(.text+0x81cc): more undefined references to
`LAMMPS_NS::AngleCharmm::AngleCharmm(LAMMPS_NS::LAMMPS*)' follow
make[1]: *** [../lmp_hpcibex01_15thMay15_intel] Error 1
make[1]: Leaving directory
`/lustre04/vol0/lili3p/lammps-15May15/src/Obj_hpcibex01_15thMay15_intel'
make: *** [hpcibex01_15thMay15_intel] Error 2

The same source codes do not cause any problems in other places so I am
confused by what settings might have caused this error appearing.

have you tried doing a:

make clean-all

and then recompile?

axel.

Dear Axel

Thank you for your reply.
Yes I did “make clean-all” before compiling in src everytime.

Best

Dear Axel

Thank you for your reply.
Yes I did "make clean-all" before compiling in src everytime.

well, then it is difficult to say what is going on without looking
over your shoulder.

what is the exact command line you use to compile?

can you compile LAMMPS with: make serial
or with: make mpi

are there any significant warnings during compilation?

are you compiling from a fresh downloaded source tar file, or did you
download/update via svn/git?

axel.