1

Can anyone help me with this error ?

#include <utility>
#include <iostream>

#include <yaml-cpp/yaml.h>

class ConfigLoader
{
public:
    ConfigLoader():loadedConfigFile(YAML::LoadFile("./home/muasad/Desktop/magna_mdf_reader/Config_file.yaml"))
    {

    }

private:

    YAML::Node loadedConfigFile;
};

error: undefined reference to `YAML::LoadFile(std::__cxx11::basic_string, std::allocator > const&)'

Stack Danny
  • 7,754
  • 2
  • 26
  • 55
Muhammad
  • 21
  • 2
  • You should show your compile and link command. You are likely missing the YAML library or it was placed in the wrong position in the compile/link command. – jww Apr 17 '19 at 11:51

0 Answers0