[lammps-users] error of -lifcore when compiling reax

Dear All,

I try to compile reax package, but encounter a problem. I download the latest version of lammps, then I obtain libreax.a successfully in /lib/reax folder. However, the executable file can not generated with following error information:

cd …/lib/reax
make -f Makefile.ifort
cd …/…/src
make yes-reax
make g++

…ity.o verlet.o write_restart.o -lreax -lmpich -lpthread -lfftw -lifcore -lsvml -lompstub -limf -o …/lmp_g++
/usr/lib/gcc/i586-suse-linux/4.4/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lifcore
collect2: ld returned 1 exit status
make[1]: *** […/lmp_g++] Error 1
make[1]: Leaving directory `/home/junjiz3k/soft/2010-12-lammps/lammps-7Dec10/src/Obj_g++’
make: *** [g++] Error 2

For your reference, I also attach the modified Makefile.g++. Any suggestion is highly apprecaited!


Makefile.g++ (2.54 KB)

Well, if you don't have the lib ifcore, you can't like against it.
That's an Intel fortran lib. As the manual explains
you have to figure out how the compiler you use links
C++ with Fortran and specify the correct libraries.