Questions tagged [yaml-cpp]

yaml-cpp is an open source C++ library, for parsing and emitting YAML.

yaml-cpp is an open source C++ library, hosted on GitHub, for parsing and emitting YAML.

314 questions
0
votes
2 answers

Error when compiling yaml-cpp using MinGW: Error: 'atoi' is not a member of 'std'

I'm trying to compile yaml-cpp on windows 10. For some reason, atoi is not part of the std namespace and I can't figure out what is wrong. Thanks! cmake -G "MinGW Makefiles" ... (Makefile gets…
user2316667
  • 5,444
  • 13
  • 49
  • 71
0
votes
1 answer

How to include a library in my code using cmake?

I have tried to ´make´ the library yaml-cpp, not sure I did it right, but how do I build it? In the tutorial (https://github.com/jbeder/yaml-cpp/blob/master/README.md) it says to run cmake in the build dir, but cmake could not find the cmakelist…
JemoeE
  • 580
  • 2
  • 6
  • 15
0
votes
1 answer

yams-cpp nested sequence returning map instead of value

I am trying to parse the following config.yaml file. config.yaml foo: bar: baz: [1, 2, 3, 4] bam: "some_string_value" test.cpp YAML::Node configObj = YAML::LoadFile("cfig.yaml"); // loads file just fine YAML::Node fooObj =…
0
votes
0 answers

When parsing a YAML file with yaml-cpp, getting an undefined node type

I'm testing out YAML to see if it would be a good fit for a data storage format for a game engine. I've created this sample YAML file: --- ShaderProperties: EntryPoint : UnlitHomogenousVS Profile …
0
votes
0 answers

undefined reference with YAML::node::Scalar

i want to use an old project with yaml-cpp, but when I try to recompile my MakeFile I have got this error patchyLigne3D.o: dans la fonction « YAML::Node::Scalar[abi:cxx11]() const »: /usr/include/yaml-cpp/node/impl.h:158: référence indéfinie vers…
Kafka
  • 720
  • 6
  • 21
0
votes
2 answers

Compiler error coming out of yaml-cpp

I'm attempting to integrate yaml-cpp into a project, but I'm seeing some unexpected errors out of GCC. For example: g++ -c -ggdb3 -ansi -Wall -Werror -pedantic-errors src/commands-tz.cpp -o obj/commands-tz.o In file included from…
Chris Tonkinson
  • 13,823
  • 14
  • 58
  • 90
0
votes
1 answer

Invalid initialization of non-const reference of type 'YAML::Node&' from an rvalue of type 'YAML::Node'

I am writing a function that will load and save values into a .yaml file (depending on what the toggle input is; 'S' for save and 'L' for load). For some reason I am getting a Invalid initialization of non-const reference of type 'YAML::Node&' from…
jlcv
  • 1,688
  • 5
  • 21
  • 50
0
votes
1 answer

ros-indigo installation libyaml-cpp-dev error

I'm new to ROS and Linux and am trying to install Ros indigo on Ubuntu 14.04 trusty following the tutorials: http://wiki.ros.org/indigo/Installation/Ubuntu http://wiki.ros.org/turtlebot/Tutorials/indigo/Installation I keep on having the following…
roselight
  • 31
  • 2
0
votes
1 answer

Data loss issue while converting the string from std::string to const char *

In this function, passing string as an argument (which is having the huge amount of data as a string)... SendBytes method is defined like this bool NetOutputBuffer_c::SendBytes ( const void * pBuf, int iLen ) { BYTE * pMy = (BYTE*)pBuf; …
0
votes
0 answers

yaml-cpp YAML::LoadFile(std::string const&) error

I'm new to yaml-cpp and i have some questions about it. Recently at my freeebsd i installed yaml-cpp 0.5.0 and i want to use it in my project. Here is the full compile log: gmake: Warning: File `Makefile' has modification time 6799 s in the…
Dennis
  • 19
  • 5
0
votes
0 answers

yaml-cpp link error on MacOS and gcc-4.8

I have issues linking yaml-cpp code. The weird thing is that it is compiler dependent. I am using homebrew to get yaml-cpp and gcc-4.8 . I have a simple program #include int main(){ YAML::Node yparams_; yparams =…
Alex
  • 77
  • 5
0
votes
1 answer

Error with yaml-cpp while trying to run file

Im trying to run the sample file given here: http://cpp-shuda.googlecode.com/svn-history/r12/trunk/Yaml/main.cpp Ive copied everything as is, and i have the include folder setup in visual studio 2012. I'm getting: IntelliSense: no operator ">>"…
Svision
  • 13
  • 3
0
votes
1 answer

Adding multiline string to a Yaml-cpp node

How to add a multi line string as value to key using node ? I don't want to use emitter. I want something like below code Iphone: blah ... blah \n blah .... blah \n I want to create the data similar to above programitically using a YAML::Node…
Bhanu Vanka
  • 31
  • 1
  • 3
0
votes
0 answers

yaml-cpp cmake error, boost files not found

I just downloaded and tried to build yaml-cpp v. 0.5.1, did everything as specified both in the web page and in the install.txt file, but got the following error: CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):Unable to find…
David Castillo
  • 4,266
  • 4
  • 23
  • 25
0
votes
0 answers

YAML-CPP with QTcreator

i try to use yaml-cpp in cmake with windows 7 I followed the tutorial and build the cmake and get yaml-cpp.dll , yaml-cpp.lib , yaml-cpp.exp i saved them inside the libs directory in my project. with LIBS += -L$$PWD/libs -lyaml-cpp i add in in my…
Hunk
  • 479
  • 11
  • 33
1 2 3
20
21