On my Raspberry Pi, with Debian Squeeze, I want to link to the shared objects in /opt/vc/lib. I have added this directory to a file in /etc/ld.so.conf.d/ which is included in /etc/ld.so.conf. The compiler/linker runs without error, but upon execution, the program complains about missing .so files. Running ldd confirms that the libs cannot be found, but running ldconfig -v, after running ldconfig, shows the libs are in the cache.
What can cause this problem?
sudo ldconfig? Are the libs/dir listed in output fromldconfig -v? The linker and loader are two different things (ldd vs ld). – XTL Nov 26 '12 at 6:30