Compiling Error

Dear LAMMPS community,

I tried to figure out what went wrong with my LAMMPS compiling, but could not find out the problem. I’m trying to compile serial version LAMMPS for my small workstation using make serial. It went well up to:

icc -0 -DLAMMPS_GZIP –I…/STUBS –c write_restart.cpp

Then I received long list of error message started with:

Icc -0 -angle_charm.o angle_cosine.o …………………. list of **.o files, very long line, and ended with : undefined reference to ‘operator delete (void)’

Followed by hundreds of lines that always end with:

: undefined reference to ‘*****’

Examples of ***** are:

__gxx_personarity_v0

__cxa_pure_virtual

operator delete

I wish I could’ve cut & paste all errors, but it was just too long. Therefore I summarized it above, and hope it is enough to describe my problem. I appreciate anyone’s suggestion.

Thank you.

Tak

Takahiro Yamada, Ph. D.

Environmental Engineering Group

University of Dayton Research Institute

300 College Park KL102

Dayton, OH 45469

Tel: 937-229-2815

Dear LAMMPS community,

dear tak,

I tried to figure out what went wrong with my LAMMPS compiling, but could
not find out the problem. I’m trying to compile serial version LAMMPS for
my small workstation using make serial. It went well up to:

icc -0 -DLAMMPS_GZIP –I../STUBS –c write_restart.cpp

Then I received long list of error message started with:

Icc -0 -angle_charm.o angle_cosine.o …………………. list of ***.o files, very
long line, and ended with : undefined reference to ‘operator delete (void*)’

Followed by hundreds of lines that always end with:

: undefined reference to ‘*****’

Examples of ***** are:

__gxx_personarity_v0

__cxa_pure_virtual

operator delete[](void*)

I wish I could’ve cut & paste all errors, but it was just too long.
Therefore I summarized it above, and hope it is enough to describe my
problem. I appreciate anyone’s suggestion.

yes. all of those messages refer to the c++ runtime library.
you are using icc which is the intel C compiler, which will
recognize C++ files if they are named properly to compile
them into C++ object, but it doesn't like with the C++ runtime.

just replace icc with icpc (the intel C++ compiler) and those
linker errors should vanish (unless there are other ones).

axel.