[lammps-users] Compiling LAMMPS

Hi,
I am getting the following errors during linking while trying to compile LAMMPS in a Darwin system (kernel version 8.10.0). I am not sure what exactly is the reason for this. Any advice/suggestion would be appreciated.

Hi,
      I am getting the following errors during linking while trying to
compile LAMMPS in a Darwin system (kernel version 8.10.0). I am not sure
what exactly is the reason for this. Any advice/suggestion would be
appreciated.

hi,
this looks like you are linking c++ code with a c compilers.
if you have these kind of problems, please post more details
about the settings of the makefile you are using and what compiler,
hardware, OS version etc. you are using. generally, the quality of
help you can get depends largely on the quality of your problem
description. otherwise people have to guess (or will not answer at all),
and may give you bad advice.

here is my guess: are you using an intel compiler?
in that case you should use icpc instead of icc
in your makefile and it should be ok.

cheers,
   axel.

Arnab,

I have used the attached Makefile.mpi for MacOS, provided both mpich and fftw2.1.5 are installed. I use Makefile.local for a stand alone version, provided fftw2.1.5 is installed. The standard Makefile.serial creates a stand alone without mpi and fftw. All Makefiles go into src/MAKE. Mpich and fftw were installed using the default settings.

Pieter

Makefile.mpi (601 Bytes)

Makefile.local (724 Bytes)

Hi,
Thanks Axel and Pieter for your advice/suggestion. The system is Power Macintosh
powerpc, Darwin Kernel Version 8.10.0. I have pasted the Makefile below
which i am using for different settings.