Segmentation Fault on yaml-cpp-0.5.3
elaner1956 opened this issue · comments
Need to use yaml-0.5.3 as platform does not have C++ 11.
I have a very simple config file named config.yml:
---
Networking:
port: 3030
Code looks like this:
YAML::Node dsp;
dsp = YAML::LoadFile("config.yml");
cout << dsp << "\n";
cout << dsp["Networking"]["port"] << "\n";
Output is:
Networking:
port: 3030
Segmentation fault
The second cout statement is giving a segmentation fault.
Any help is appreciated.
Please ask on Stack Overflow.