Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ldap Includes

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Does anyone know what I need to include to get the winldap class to work?

I have been trying microsoft examples using these includes:

<code>
[blue]
#include <windows.h>
#include <winldap.h>
#include <stdio.h>
[/blue]
</code>

However, I am returning linker errors because the functions are defined.

Code:
[red]
main.obj : error LNK2001: unresolved external symbol __imp__ldap_unbind
main.obj : error LNK2001: unresolved external symbol __imp__ldap_bind_s
main.obj : error LNK2001: unresolved external symbol __imp__ldap_connect
main.obj : error LNK2001: unresolved external symbol __imp__ldap_set_option
main.obj : error LNK2001: unresolved external symbol __imp__ldap_init
[/red]

What am I missing?

Thanks,
Ron

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
Ron

You need to add

user32.lib

to your project which is located in something like

find in \\programs\MSVS\VC98\lib
 
That is so awesome. You made my day!
Don't forget WLDAP32.LIB as well

-Ron

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top