LD_LIBRARY_PATH vs LIBRARY_PATH

I’m building a simple C++ program and I want to temporarily substitute a system supplied shared library with a more recent version of it, for development and testing. I tried setting the LD_LIBRARY_PATH variable but the linker (ld) failed with: /usr/bin/ld: cannot find -lyaml-cpp I expected that to work because according to the ld man … Read more