![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cpp
wx_kingstone
这个作者很懒,什么都没留下…
展开
-
golang调用c库函数
golang调用c库函数c语言相关代码golang相关代码golang编译 本文章介绍了golang如何调用c语言库函数。如果想调用c++库函数,建议在c++上再封一层c语言代码,编译成c语言动态库,再被golang调用。 c语言相关代码 cc文件、so编译省略 c头文件,mytest.h #ifndef __MYTEST_H_ #define __MYTEST_H_ #ifdef __cplusplus extern "C" { #endif int TestCgo(const char原创 2021-07-27 22:11:36 · 1720 阅读 · 0 评论 -
JsonCpp使用细节
JsonCpp使用细节 常用方式 #include "json/json.h" #include <string> using namespace std; void test() { Json::Value root; Json::Value data; data.resize(0); // 生成空数组 root["data"] = data; Json::StreamWriterBuilder streamWriter; streamWrite原创 2021-07-23 12:09:00 · 205 阅读 · 0 评论