Hi,
I am compiling VASP6.3.2 with libxc (both libxc5.2.3 and libxc6.2.2 tested, and encountered the same error).
I am using intel compiler 2017.
Without libxc, I compiled VASP6.3.2 succesfully, and vasp also runs smoothly without errors.
Then I downloaded libxc, compiled libxc (no error) (as instructed https://www.vasp.at/wiki/index.php/Makefile.include#Libxc_.28optional.29) , and added this to makefile.include
LIBXC_ROOT ?= /work/home/programs/vasp6.3.2/VASP_6.3.2/libxc-5.2.3-intel-2017
#LLIBS += -L$(LIBXC_ROOT)/lib -lxcf03 -lxc
LLIBS += $(LIBXC_ROOT)/lib/libxcf03.a $(LIBXC_ROOT)/lib/libxc.a
INCS += -I$(LIBXC_ROOT)/include
FInally, the compililation stops at this error:
/work/home/programs/vasp6.3.2/VASP_6.3.2/libxc-5.2.3-intel-2017/lib/libxcf03.a(libxcf03.o): In function `xc_f03_lib_m_mp_xc_f03_functional_get_name_':
libxcf03.f90:(.text+0xd3b): undefined reference to 'libxc_free'
How can I solve this error? Thank you very much in advance,
Geng