<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Yaml-Cpp on Producthunt daily</title>
        <link>https://producthunt.programnotes.cn/en/tags/yaml-cpp/</link>
        <description>Recent content in Yaml-Cpp on Producthunt daily</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Sat, 11 Jul 2026 16:59:52 +0800</lastBuildDate><atom:link href="https://producthunt.programnotes.cn/en/tags/yaml-cpp/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>yaml-cpp</title>
        <link>https://producthunt.programnotes.cn/en/p/yaml-cpp/</link>
        <pubDate>Sat, 11 Jul 2026 16:59:52 +0800</pubDate>
        
        <guid>https://producthunt.programnotes.cn/en/p/yaml-cpp/</guid>
        <description>&lt;img src="https://images.unsplash.com/photo-1506260408121-e353d10b87c7?ixid=M3w0NjAwMjJ8MHwxfHJhbmRvbXx8fHx8fHx8fDE3ODM3NjAxNzh8&amp;ixlib=rb-4.1.0" alt="Featured image of post yaml-cpp" /&gt;&lt;h1 id=&#34;jbederyaml-cpp&#34;&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;jbeder/yaml-cpp&lt;/a&gt;
&lt;/h1&gt;&lt;h1 id=&#34;yaml-cpp-build-status-documentation&#34;&gt;yaml-cpp &lt;img src=&#34;https://github.com/jbeder/yaml-cpp/actions/workflows/build.yml/badge.svg&#34;
	
	
	
	loading=&#34;lazy&#34;
	
		alt=&#34;Build Status&#34;
	
	
&gt; &lt;a class=&#34;link&#34; href=&#34;https://codedocs.xyz/jbeder/yaml-cpp/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;img src=&#34;https://codedocs.xyz/jbeder/yaml-cpp.svg&#34;
	
	
	
	loading=&#34;lazy&#34;
	
		alt=&#34;Documentation&#34;
	
	
&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;p&gt;&lt;code&gt;yaml-cpp&lt;/code&gt; is a &lt;a class=&#34;link&#34; href=&#34;http://www.yaml.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;YAML&lt;/a&gt; parser and emitter in C++ matching the &lt;a class=&#34;link&#34; href=&#34;http://www.yaml.org/spec/1.2/spec.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;YAML 1.2 spec&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;usage&#34;&gt;Usage
&lt;/h2&gt;&lt;p&gt;See &lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/wiki/Tutorial&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Tutorial&lt;/a&gt; and &lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/wiki/How-To-Emit-YAML&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;How to Emit YAML&lt;/a&gt; for reference. For the old API (until 0.5.0), see &lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/wiki/How-To-Parse-A-Document-%28Old-API%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;How To Parse A Document&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;how-to-build&#34;&gt;How to Build
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;yaml-cpp&lt;/code&gt; uses &lt;a class=&#34;link&#34; href=&#34;http://www.cmake.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;CMake&lt;/a&gt; to support cross-platform building. Install &lt;a class=&#34;link&#34; href=&#34;http://www.cmake.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;CMake&lt;/a&gt; &lt;em&gt;(Resources -&amp;gt; Download)&lt;/em&gt; before proceeding. The basic steps to build are:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you don&amp;rsquo;t use the provided installer for your platform, make sure that you add &lt;code&gt;CMake&lt;/code&gt;&amp;rsquo;s bin folder to your path.&lt;/p&gt;
&lt;h4 id=&#34;1-navigate-into-the-source-directory-create-build-folder-and-run-cmake&#34;&gt;1. Navigate into the source directory, create build folder and run &lt;code&gt;CMake&lt;/code&gt;:
&lt;/h4&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir build
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; build
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cmake &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;-G generator&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;-DYAML_BUILD_SHARED_LIBS&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;on&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;OFF&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; ..
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The &lt;code&gt;generator&lt;/code&gt; option is the build system you&amp;rsquo;d like to use. Run &lt;code&gt;cmake&lt;/code&gt; without arguments to see a full list of available generators.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On Windows, you might use &amp;ldquo;Visual Studio 12 2013&amp;rdquo; (VS 2013 32-bits), or &amp;ldquo;Visual Studio 14 2015 Win64&amp;rdquo; (VS 2015 64-bits).&lt;/li&gt;
&lt;li&gt;On OS X, you might use &amp;ldquo;Xcode&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;On a UNIX-like system, omit the option (for a Makefile).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;yaml-cpp&lt;/code&gt; builds a static library by default, you may want to build a shared library by specifying &lt;code&gt;-DYAML_BUILD_SHARED_LIBS=ON&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://gcc.gnu.org/onlinedocs/libstdc&amp;#43;&amp;#43;/manual/debug_mode.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Debug mode of the GNU standard C++
library&lt;/a&gt;
can be used when both &lt;code&gt;yaml-cpp&lt;/code&gt; and client code is compiled with the
&lt;code&gt;_GLIBCXX_DEBUG&lt;/code&gt; flag (e.g. by calling CMake with &lt;code&gt;-D CMAKE_CXX_FLAGS_DEBUG=&#39;-g -D_GLIBCXX_DEBUG&#39;&lt;/code&gt; option).&lt;/p&gt;
&lt;p&gt;Note that for &lt;code&gt;yaml-cpp&lt;/code&gt; unit tests to run successfully, the &lt;em&gt;GoogleTest&lt;/em&gt;
library also must be built with this flag, i.e. the system one cannot be
used (the &lt;em&gt;YAML_USE_SYSTEM_GTEST&lt;/em&gt; CMake option must be &lt;em&gt;OFF&lt;/em&gt;, which is the
default).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For more options on customizing the build, see the &lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;CMakeLists.txt&lt;/a&gt; file.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;2-build-it&#34;&gt;2. Build it!
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;The command you&amp;rsquo;ll need to run depends on the generator you chose earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; To clean up, just remove the &lt;code&gt;build&lt;/code&gt; directory.&lt;/p&gt;
&lt;h2 id=&#34;how-to-integrate-it-within-your-project-using-cmake&#34;&gt;How to Integrate it within your project using CMake
&lt;/h2&gt;&lt;p&gt;You can use for example FetchContent :&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt; 1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 7
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 8
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 9
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;10
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-cmake&#34; data-lang=&#34;cmake&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;include&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;FetchContent&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;FetchContent_Declare&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;s&#34;&gt;yaml-cpp&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;s&#34;&gt;GIT_REPOSITORY&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;https://github.com/jbeder/yaml-cpp.git&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;s&#34;&gt;GIT_TAG&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;lt;tag_name&amp;gt;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;# Can be a tag (yaml-cpp-x.x.x), a commit hash, or a branch name (master)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;FetchContent_MakeAvailable&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;yaml-cpp&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;err&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;target_link_libraries&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;YOUR_LIBRARY&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;PUBLIC&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;yaml-cpp::yaml-cpp&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;# The library or executable that require yaml-cpp library
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id=&#34;recent-releases&#34;&gt;Recent Releases
&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/releases/tag/yaml-cpp-0.9.0&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;yaml-cpp 0.9.0&lt;/a&gt; released!&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/jbeder/yaml-cpp/releases/tag/release-0.3.0&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;yaml-cpp 0.3.0&lt;/a&gt; is still available if you want the old API.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The old API will stop receiving bugfixes in 2026.&lt;/strong&gt; The 0.3.x versions provide the old API, and 0.5.x and above all provide the new API.&lt;/p&gt;
&lt;h1 id=&#34;api-documentation&#34;&gt;API Documentation
&lt;/h1&gt;&lt;p&gt;The autogenerated API reference is hosted on &lt;a class=&#34;link&#34; href=&#34;https://codedocs.xyz/jbeder/yaml-cpp/index.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;CodeDocs&lt;/a&gt;&lt;/p&gt;
&lt;h1 id=&#34;third-party-integrations&#34;&gt;Third Party Integrations
&lt;/h1&gt;&lt;p&gt;The following projects are not officially supported:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://gist.github.com/brcha/d392b2fe5f1e427cc8a6&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Qt wrapper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/jwindgassen/UnrealYAML&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;UnrealEngine Wrapper&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        </item>
        
    </channel>
</rss>
