Closed uovie closed 5 years ago
It has been solved with the Makefile
CC := g++
INCL1 := /usr/local/libint/2.5.0/include
INCL2 := /usr/local/libint/2.5.0/include/libint2
LIBS := /usr/local/libint/2.5.0/lib
TARGETS := HF
OBJ := hartree-fock.o
DEPS :=
.PHONY: all clean
all: $(TARGETS)
clean:
rm -f $(OBJ)
$(OBJ): %.o : %.cc $(DEPS)
$(CC) -c $< -o $@ -I $(INCL1) -I $(INCL2) -lint2 -L $(LIBS)
$(TARGETS): $(OBJ)
$(CC) $^ -o $@ -I $(INCL1) -I $(INCL2) -lint2 -L $(LIBS)
Thanks!
Dear libint developers:
I meet a problem when compiling "tests/hartree-fock/hartree-fock.cc". When running
make check1
, it returns...make: Nothing to be done for 'check1'.
. So, I write a new Makefileto carry out the compile procedure. However, it fails with errors in the linking step:
I do not know how to solve it and correctly compile it. Looking forward to your reply.
Sincerely, Haoyu Lin