Please take a look at the following log. I installed redis from source using the latest github repository clone and the prefix in my hiredis makefile was set to usr/local. I did not change it. I am getting the following errors.
Scanning dependencies of target test_redis++
[ 83%] Building CXX object test/CMakeFiles/test_redis++.dir/src/sw/redis++/test_main.cpp.o
[ 97%] Built target redis-plus-plus-shared
[100%] Linking CXX executable test_redis++
/usr/bin/ld: CMakeFiles/test_redis++.dir/src/sw/redis++/test_main.cpp.o: in function `std::_Sp_counted_ptr_inplace<sw::redis::ConnectionPool, std::allocator<sw::redis::ConnectionPool>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
test_main.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0xc9): undefined reference to `redisFreeSSLContext'
/usr/bin/ld: test_main.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0x1dd): undefined reference to `redisFreeSSLContext'
/usr/bin/ld: test_main.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0x2e6): undefined reference to `redisFreeSSLContext'
/usr/bin/ld: test_main.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceIN2sw5redis14ConnectionPoolESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0x515): undefined reference to `redisFreeSSLContext'
/usr/bin/ld: CMakeFiles/test_redis++.dir/src/sw/redis++/test_main.cpp.o: in function `sw::redis::SafeConnection::~SafeConnection()':
test_main.cpp:(.text._ZN2sw5redis14SafeConnectionD2Ev[_ZN2sw5redis14SafeConnectionD5Ev]+0x48a): undefined reference to `redisFreeSSLContext'
/usr/bin/ld: CMakeFiles/test_redis++.dir/src/sw/redis++/test_main.cpp.o:test_main.cpp:(.text._ZN2sw5redis14SafeConnectionD2Ev[_ZN2sw5redis14SafeConnectionD5Ev]+0x55e): more undefined references to `redisFreeSSLContext' follow
/usr/bin/ld: ../lib/libredis++.a(tls.cpp.o): in function `sw::redis::tls::secure_connection(redisContext&, sw::redis::tls::TlsOptions const&)':
tls.cpp:(.text+0xe8): undefined reference to `redisCreateSSLContext'
/usr/bin/ld: tls.cpp:(.text+0x100): undefined reference to `redisInitiateSSLWithContext'
/usr/bin/ld: ../lib/libredis++.a(tls.cpp.o): in function `sw::redis::tls::TlsInit::TlsInit()':
tls.cpp:(.text+0x55): undefined reference to `redisInitOpenSSL'
/usr/bin/ld: ../lib/libredis++.a(tls.cpp.o): in function `sw::redis::tls::secure_connection(redisContext&, sw::redis::tls::TlsOptions const&) [clone .cold]':
tls.cpp:(.text.unlikely+0x12): undefined reference to `redisSSLContextGetError'
/usr/bin/ld: tls.cpp:(.text.unlikely+0x161): undefined reference to `redisFreeSSLContext'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/test_redis++.dir/build.make:106: test/test_redis++] Error 1
make[1]: *** [CMakeFiles/Makefile2:172: test/CMakeFiles/test_redis++.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
and if I do simply Redis("127.0.0.1") and assign it to a variable it throws a long list lof linker errors that look similar to the make error log I showed you above.
PLEASE HELP!