Build Problem
AAA Leasing <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
I thought I was dealing with a newbie linking problem, I took it to
http://www.daniweb.com/forums/post1151890.html#post1151890
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)
$ 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 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 --
Joe
Original Program:
#include "yaml.h"
#include <iostream>
#include <fstream>
int main()
{
std::ifstream fin("test.yaml");
YAML::Parser parser(fin);
YAML::Node doc;
return 0;
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core