问题
I am trying to compile some C code which I inherited from a colleague. I am running into some missing library issues - that is, the output of make is
gcc -L. -L/lib -L/lib -L/lib -L/lib64 -o gnd2fmdpara gnd2fmdpara.o git_version.o -lfmd -lnumerics -lmisc -llapack -lblas -lgfortran -lm -lz
/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
/usr/bin/ld: skipping incompatible /lib/libm.so when searching for -lm
I have put the libraries where the LAPACK and BLAS stuff resides on the PATH, and importantly the LD_LIBRARY_PATH, but still hit the same error.
Can anyone suggest to me how I can help my Makefile find the missing libraries? Thank you so much!
来源:https://stackoverflow.com/questions/40112056/missing-library-issues-in-compiling-c-code-ld-cant-find-libraries