【问题标题】:when linking with "ld" am getting following error?与“ld”链接时出现以下错误?
【发布时间】:2013-07-31 04:35:53
【问题描述】:

在进行链接时出现以下错误。

/usr/bin/ld: cannot find -lfl

======
cc -g .//obj/add.o .//obj/append.o .//obj/check.o .//obj/compare.o .//obj/free_mem.o
.//obj/output.o .//obj/postmosy.o .//obj/premosyy.o .//obj/premosyl.o .//obj/process.o
.//obj/store.o -o v2comp -lfl
/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make: *** [v2comp] Error 1

谢谢 拉杰什库马尔 V

【问题讨论】:

  • 它不知道“fl”库是什么。确保你把-L\location\to\.so
  • ...可能是因为没有安装该库,至少没有安装在链接器搜索路径中的目录之一中。

标签: c ubuntu gcc linker ld


【解决方案1】:

这应该会有所帮助:

sudo apt-get install libfl-dev

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-03
    相关资源
    最近更新 更多