Missing library issues in compiling C code: ld can't find libraries

泄露秘密 提交于 2019-12-11 05:34:55

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!