I thought I was dealing with a newbie linking problem, I took it to 


but the consensus is that I should start troubleshooting the yaml build, which I am not qualified for. The general problem is outlined below:
$ 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 => not found
        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)
CMakeCache.txt       CTestTestfile.cmake  libyaml-cpp.so.0.2.4  yaml-cpp.pc
CMakeFiles           libyaml-cpp.so       Makefile              yaml-reader
cmake_install.cmake  libyaml-cpp.so.0.2   util
I built the shared object on Saturday, I'm really not sure what is wrong. Any help would be appreciated.

Thanks --


Original Program:
  1. #include "yaml.h"
  2. #include <iostream>
  3. #include <fstream>
  5. int main()
  6. {
  7. std::ifstream fin("test.yaml");
  8. YAML::Parser parser(fin);
  9. YAML::Node doc;
  11. return 0;
  12. }