I've run into linking problems before, so I thought I had them figured out. This one I'm using every tool I have, but I can't seem to identify what the issue is.
Did a build from the yaml site yesterday, I keep getting this linking error at runtime. I set LD_LIBRARY_PATH, but as you can see the shared object that is missing with ldd is in the path. Am I missing something here?
$ g++ -fPIC -Wall -lyaml-cpp main.c -L$YAMLCPP/yaml-cpp/build-I$YAMLCPP/yaml-cpp/include $ a.out a.out: error while loading shared libraries: libyaml-cpp.so.0.2: cannot open shared object file: No such file or directory $ ldd a.out libyaml-cpp.so.0.2 => [B]not found[/B] libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00000034ce400000) libm.so.6 => /lib64/tls/libm.so.6 (0x00000034cbe00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00000034ce200000) libc.so.6 => /lib64/tls/libc.so.6 (0x00000034cbb00000) /lib64/ld-linux-x86-64.so.2 (0x00000034cb700000) $ ls $LD_LIBRARY_PATH CMakeCache.txt CTestTestfile.cmake libyaml-cpp.so.0.2.4 yaml-cpp.pc CMakeFiles libyaml-cpp.so Makefile yaml-reader cmake_install.cmake [B]libyaml-cpp.so.0.2[/B] util