title: C++ Redis hiredis compiler error?
body: <p>Thanks to someone on this site, I was able to use a sample C++ source file.
  <a href="https://gist.github.com/1893378" rel="nofollow">https://gist.github.com/1893378</a>
  When I compile this, I get a bunch of strange compiler errors:</p>
  
  <pre><code>/home/.../workspace/redis-hiredis-3c46b13/pipelineTest.cpp: In function ‘void redisTop(redisContext*)’:
  /home/.../workspace/redis-hiredis-3c46b13/pipelineTest.cpp:142:32: error: invalid conversion from ‘void*’ to ‘redisReply*’
  /home/../workspace/redis-hiredis-3c46b13/pipelineTest.cpp:162:25: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
  /home/=.../workspace/redis-hiredis-3c46b13/pipelineTest.cpp: In function ‘int main(int, char**)’: 
  </code></pre>
  
  <p>I realize I may be out of synch with hiredis libray but I am using the latest one. Any ideas how to properly build this C++ program? </p>
  
  <p>Also, I am looking for a complete C++ tutorial of pipeline with Redis. Here is a really good example in Java:</p>
  
  <p><a href="http://www.cafebabe.me/2011/05/redis-pipelines-and-transactions.html" rel="nofollow">http://www.cafebabe.me/2011/05/redis-pipelines-and-transactions.html</a></p>
  
  <p>Is there no example tutorial like this for C++?<br>
  Thanks either way</p>