[英]How to use jsoncpp without jsoncpp.dll?
strcpy(this->encoding, jsonvalue.get("encoding", "").asCString());
I need to work with json data in my program, yesterday i downloaded it using nuGet, coded all i needed, commented path to jsoncpp.lib
but system doesnt allow me to start the program due to missing jsoncpp.dll
. 我需要在程序中使用json数据,昨天我使用nuGet下载了它,对所有需要的代码进行了编码,并注释了
jsoncpp.lib
路径,但由于缺少jsoncpp.dll
系统不允许我启动程序。 Does this mean i need to take the dll everywhere with my program? 这是否意味着我需要在程序中随处携带dll? If so, im not happy with that so can i solve this?
如果是这样,我对此不满意,那么我可以解决这个问题吗? Or if its impossible, which json libraries that doesnt require dll can i use ?
或者,如果不可能,我可以使用哪些不需要dll的json库?
jsoncpp.cpp
to your project jsoncpp.cpp
添加到您的项目 #define JSON_IS_AMALGAMATION
in json.h
#define JSON_IS_AMALGAMATION
中的json.h
#include "json/json.h"
at the beginning of your source code #include "json/json.h"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.