usr/bin/ld: cannot find -l

前端 未结 14 2681
离开以前
离开以前 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 07:48

    Here is Ubuntu information of my laptop.

    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 18.04.2 LTS
    Release:    18.04
    Codename:   bionic
    

    I use locate to find the .so files for boost_filesystem and boost_system

    locate libboost_filesystem
    locate libboost_system
    

    Then link .so files to /usr/lib and rename to .so

    sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.65.1 /usr/lib/libboost_filesystem.so
    sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 /usr/lib/libboost_system.so
    

    Done! R package velocyto.R was successfully installed!

提交回复
热议问题