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?
EDITAnother thing that could cause this issue is an RPATH set in the executable - see wikipedia.