I have a YAML file consisting of:
abc: 123
And I'm using the following code to load it:
YAML::Node base = YAML::Load("test.yaml");
std::cout << base["abc"].as<int>() << std::endl;
MSVC fails to link (caused by the second line), stating:
unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > YAML::detail::node_data::empty_scalar"
I don't know what I'm doing wrong, or if I just set it up wrong. It links and parses files fine, just doesn't let me use YAML::Node::operator[]
without giving me an error.