gcc - /usr/bin/ld error: cannot find in /usr/local/lib though ldconfig list it, and path added to ld.so.conf

后端 未结 3 1473
有刺的猬
有刺的猬 2021-02-19 09:52

I try to compile a C++ code, using a library I\'ve also compiled manually and installed in /usr/local/lib

The compilation of the software fails at the linking step:

3条回答
  •  一个人的身影
    2021-02-19 10:20

    ld, the linker, does not use external configuration files for that. ldconfig is for the loader, ld.so. Create a makefile if you want to set values for the linker somewhere.

提交回复
热议问题