I am trying to compile ldapc++ library distributed with openldap-2.4.26 and getting following error during make:

../src/LDAPAsynConnection.h: In function ‘int main(int, char**)’:
../src/LDAPAsynConnection.h:310: error: ‘LDAPAsynConnection::LDAPAsynConnection(const LDAPAsynConnection&)’ is private
startTls.cpp:43: error: within this context
make[1]: *** [startTls.o] Error 1
make[1]: Leaving directory `/opt/source/openldap-2.4.26/contrib/ldapc++/examples'
make: *** [all-recursive] Error 1

I am attaching my config log as well, is there anything which I am missing here?

Another thing, I would like to know does this library have Referral Chasing capability during bind, also is it thread safe or its caller's responsibility to make it thread safe?

Thanks for the help, I appreciate it very much.