gcc - /usr/bin/ld error: cannot find <library> in /usr/local/lib though ldconfig list it, and path added to ld.so.conf
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.