Use C Library with OpenFrameworks

I want to use Redis in order to store some data from an OF application.

I know that there’s a C++ library for Redis, but I don’t want to add the Boost library. So is there a possibility to use the C library under a OF application?

I’ve some other possibility:

  1. Run a python script to update the redis db
  2. Send a post request to a webservice

but the best approach for me is to use the Redis C library.

Is it possible?

Using C in C++ is pretty easy. There’s some info on just that topic right here: http://www.parashift.com/c+±faq/mixing-c-and-cpp.html