I try to access ldap data in C++, and write a small example which open and close ldap, compiled by g++

error is the following:

error: 'ldap_init' was not decalred in this scope

error: 'ldap_simple_bind_s' was not decalred in this scope

error: 'ldap_unbind' was not decalred in this scope

I have added extern "C" {} block.  With my means, it will be compiled using gcc actually. So it work fine in gcc, it should be fine in g++.



gtalk:freeespeech@gmail.com