Compiles fine if not using libc++
clang++ -stdlib=libc++ t.cpp -L. -lyaml-cpp
/tmp/t-eed552.o: In function `main':
t.cpp:(.text+0x79): undefined reference to
`YAML::LoadFile(std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<t.cpp>
#include "include/yaml-cpp/yaml.h"
int main(void)
{
YAML::Node config = YAML::LoadFile("config.yaml");
return 0;
}
</t.cpp>
Original issue reported on code.google.com by dgalli...@gmail.com on 26 Nov 2014 at 2:55
Original issue reported on code.google.com by
dgalli...@gmail.com
on 26 Nov 2014 at 2:55