Adding libyaml or other external libraries to a project

Hi,

I’m working on parsing yaml files that contain the configuration information for game objects. I want to avoid adding Boost to the project so I started using the c library: libyaml. The examples I can find of how to add libyaml to a c++ project involve compiling a binary .dll and adding it to the project.

Compiling the .dll won’t be cross platform capable. I tried including the source directly to the project and have it build with the project but that just does not seem to work correctly.

I can’t be the first person adding yaml parsing to a cocos2s-x project. Does anyone know of an open source project I can use as an example? Or if anyone has an explanation on how to add a library like this to a cocos2d-x project?

Thanks!

Well, I could not solve the issue or find any projects that use dlls as an example so I started looking for alternatives.

I’m still hoping someone has some info because this could crop up again with a requirement for a different library.

For now I’m moving to TOML and would recommend it to anyone who is looking for human readable/editable config files.

Spec: https://github.com/toml-lang/toml
I’m going to implement with:
https://github.com/mayah/tinytoml

Thanks!