摘要: #include <stdio.h> #include <hiredis/hiredis.h> int main() { redisContext *c = redisConnect("127.0.0.1", 6379); if (c == NULL || c->err) { if (c) { pr 阅读全文
posted @ 2020-11-19 03:43 saintdingtheGreat 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 上机环境ubuntu20.0.4 QtCreator 准备活动,安装libmongoc 和libbson 最好sudo apt 安装 mongodb,这样我们就能获得 mongoc.h 别忘了,在QtCreator选择根目录,右键点击Add Library添加libmongoc.so和libbson 阅读全文
posted @ 2020-11-19 01:51 saintdingtheGreat 阅读(579) 评论(0) 推荐(0) 编辑