You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to change Printer.cpp in json output plugins to use redis, in order to use hiredis -lhiredis flag should be added to compiler options, Unfortunately I'am a newbie in c/c++, so I don't know how to include this flag so the compiler recognize hiredis library.
My changes to Printer.cpp so far: #include <hiredis/hiredis.h> redisContext *c; redisReply *reply; c = redisConnect("127.0.0.1", 6379); reply = (redisReply *)redisCommand(c, "PING"); printf("REDIS PING: %s\n", reply->str); freeReplyObject(reply);
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I want to change Printer.cpp in json output plugins to use redis, in order to use hiredis -lhiredis flag should be added to compiler options, Unfortunately I'am a newbie in c/c++, so I don't know how to include this flag so the compiler recognize hiredis library.
My changes to Printer.cpp so far:
#include <hiredis/hiredis.h>
redisContext *c;
redisReply *reply;
c = redisConnect("127.0.0.1", 6379);
reply = (redisReply *)redisCommand(c, "PING");
printf("REDIS PING: %s\n", reply->str);
freeReplyObject(reply);
Thanks.
The text was updated successfully, but these errors were encountered: