How to connect Redis DB to C Program

436 views
Skip to first unread message

Manula Thantriwatte

unread,
Nov 18, 2010, 1:32:43 AM11/18/10
to Redis DB
I want to connect Redis DB to my C program. Can anyone tell me how to do it ?

Thanks.

--
Regards,
Manula Thantriwatte.

Jeremy Zawodny

unread,
Nov 18, 2010, 1:34:32 AM11/18/10
to redi...@googlegroups.com
https://github.com/antirez/hiredis

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Manula Thantriwatte

unread,
Nov 18, 2010, 1:40:11 AM11/18/10
to redi...@googlegroups.com
Thanks.
--
Regards,
Manula Thantriwatte.

Manula Thantriwatte

unread,
Nov 18, 2010, 4:37:18 AM11/18/10
to redi...@googlegroups.com
Hey this program works well. I made simple program which connect to Redis and Set my name and display. But when I compiling it is gives "undefined reference to `redisConnect' " error.

Why is that ?
How should I compile a new program using those header files ?
Shall I want to edit the Makefile ? How can I do that ?

Thanks.


On Thu, Nov 18, 2010 at 12:04 PM, Jeremy Zawodny <Jer...@zawodny.com> wrote:



--
Regards,
Manula Thantriwatte.

Manula Thantriwatte

unread,
Nov 18, 2010, 4:46:28 AM11/18/10
to redi...@googlegroups.com
Hey I'll able to find the solution. Thanks. I did some silly mistake in the Make file. Now it;s works.

Thanks.
--
Regards,
Manula Thantriwatte.

Reply all
Reply to author
Forward
0 new messages