The GCC or g++ are popular compilers used to complete C and C++ applications. During the compilation, the compiler looks at the source code and loads the required libraries. If the required library can not be found the usr/bin/ld cannot find -l
error thrown.
“/usr/bin/ld cannot find -lc” Error and Solution
The “/usr/bin/ld cannot find -lc” error is related to the C development library named libc-dev
. So installing the libc-dev can resolve this error.
$ sudo apt install libc-dev
“/usr/bin/ld cannot find -lltdl” Error and Solution
The “/usr/bin/ld cannot find -lltdl” error is related to the C development library named ltdl-dev
. So installing the libtdl-dev can resolve this error.
$ sudo apt install libtdl-dev
“/usr/bin/ld cannot find -lxlst” Error and Solution
The “/usr/bin/ld cannot find -lxlst” error is related to the C development library named lxlst-dev
. So installing the libxlst-dev can resolve this error.
$ sudo apt install libxlst-dev
“/usr/bin/ld cannot find -lopencl” Error and Solution
The “/usr/bin/ld cannot find -lopencl” error is related to the C development library named lopencl-dev
. So installing the libopencl-dev can resolve this error.
$ sudo apt install libopencl-dev