I am getting errors of the following type :
1>authenticate.obj : error LNK2001: unresolved external symbol _ldap_first_attribute@12
1>authenticate.obj : error LNK2001: unresolved external symbol _ldap_first_attribute@12
1>authenticate.obj : error LNK2001: unresolved external symbol _ldap_value_free@4
1>authenticate.obj : error LNK2001: unresolved external symbol _ldap_err2string@4
I have already added the header file folder to Project -> Properties->C/C++->General->Additional Include Directories.
Any ideas
This is a linker error. You need to provide the library where the _ldap_first_attribute
and other functions listed can be found. This can be either a .lib static library or a .dll dynamic library
If this refers to this function then you have to add Wldap32.lib
to Linker->Input->Additional Dependencies
edit: if this is a external library, you don't have the lib and cannot rebuild the library yourself you can either create one or use explicit linking
You are missing LDAP
lib.Try to configure your project correctly which points to include folder where LDAP.lib
is present.
Linker --> Input --> Additional Dependencies will surely help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.