usr/bin/ld: cannot find -l

前端 未结 14 2890
离开以前
离开以前 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:11

    The library I was trying to link to turned out to have a non-standard name (i.e. wasn't prefixed with 'lib'), so they recommended using a command like this to compile it -

    gcc test.c -Iinclude lib/cspice.a -lm

提交回复
热议问题