jbeder / yaml-cpp

A YAML parser and emitter in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newest release won't build

killereks opened this issue · comments

commented

I've used CMake to generate the .sln file and then built the project. I have then linked everything correctly but i get these two errors (C++ 17):

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2491	'YAML::detail::node::m_amount': definition of dllimport static data member not allowed	Dependencies\yaml\src\node_data.cpp	16	

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2720	'YAML::detail::node::m_amount': '__declspec(dllimport)' storage-class specifier illegal on members	Dependencies\yaml\src\node_data.cpp	16	

I had the same issue and one solution I found was adding the define: yaml_cpp_EXPORTS to my configuration project.