I've updated my Mac and when I compile any codes by using the Makefile, I get this error:
ld: library not found for -lSystem collect2: error: ld returned 1 exit status
I've:
- reinstalled x-code,
- updated the gcc and Homebrew
- installed xcode command line tools
But these don't work.
This is the command I used for linking:
FC= gfortran
FLAGS = -c -O3 -std=legacy
OBJS = Mod.o Arpack.o Eigenvalue.o G.o G0.o Gauleg.o Hyper_Lin.o Lambdaval.o Fcomponent.o Triton.o Triton_YG.o
Triton_YG: $(OBJS)
$(FC) $(OBJS) -o Triton_YG $$MKL_FFLAGS $$MKL_LIBS –