usr/bin/ld: cannot find -l

前端 未结 14 2911
离开以前
离开以前 2020-11-22 07:07

I\'m trying to compile my program and it returns this error :

usr/bin/ld: cannot find -l

in my makefile I use the c

14条回答
  •  爱一瞬间的悲伤
    2020-11-22 08:00

    I had this problem with compiling LXC on a fresh VM with Centos 7.8. I tried all the above and failed. Some suggested removing the -static flag from the compiler configuration but I didn't want to change anything.

    The only thing that helped was to install glibc-static and retry. Hope that helps someone.

提交回复
热议问题