当我试图使用Visual Studio Express的2012(使用CMake的生成项目文件)编译yaml-cpp 0.5,我从impl.h得到一些错误:YAML-CPP编译器错误试图建立图书馆
error C2734: 'lhs' : const object must be initialized if not extern
error C2027: use of undefined type 'YAML::convert<T>'
error C3861: 'decode': identifier not found
error C3861: 'encode': identifier not found
所有的错误都是从模板函数node_data::equals
和node_data::convert_to_node
注意,这些错误来自run-tests
项目文件即将到来;我实际上能够构建lib文件,但无法使用库,因为它需要这些功能才能工作。
任何想法?
编辑:较2010年VS