Error with ldap.h

Hello
I have just install OpenLDAP on Linux6.0, it 's complete work with
command ldapsearch. But my problem is when I start to program with include
"ldap.h". Many error occur with ldap.h .Why?
Thanks..for your help.