Erioll

Results 4 comments of Erioll

没有main.c文件,这个不是我创建的。 我测试的报错的代码: #include #include "configor/json.hpp" struct User { int user_id; std::string user_name; CONFIGOR_BIND( configor::json, User, // 将 User 类绑定到 json CONFIGOR_REQUIRED(user_id), // user_id 字段必填,空值会引发异常 CONFIGOR_OPTIONAL(user_name) // user_name 字段非必填,空值会被忽略 ); };...

[configor.zip](https://github.com/Nomango/configor/files/9536302/configor.zip) 用Qt的环境编译的,工程文件上传了。。

![捕获1](https://user-images.githubusercontent.com/46134098/189645305-cf4b8001-f72a-4a7a-a5c2-e8ed102201d9.PNG) ![捕获2](https://user-images.githubusercontent.com/46134098/189645339-f6ff40d4-4d0b-4020-b065-dc7f94b72eef.PNG) 源码用cmake生成VS2022的工程,将编译器换为2015和2017报错截图。。

好的,谢谢,VS2015的问题解决了。。我这用VS2022使用VS2017还是报上图错误,在QT里用VS2017编译就没问题,感觉很奇怪的问题。。