>I am compiling a CPP code using Visual studion .net 2003. I get the
>following error, despite having windldap.h and wldap32.dll in my include and
[quoted text clipped - 4 lines]
>libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol
>_ldap_unbind@4
You need to add Wldap32.lib to the list of linked libraries in your
project settings. Alternatively, add:
#pragma comment( lib, "Wldap32.lib" )
to your source code (just after the #include for the header would be a
reasonable place) to use the automatic linking facility in VC++
Dave
bash - 12 May 2008 21:45 GMT
That resolved the issue.
Thanks David
> >I am compiling a CPP code using Visual studion .net 2003. I get the
> >following error, despite having windldap.h and wldap32.dll in my include and
[quoted text clipped - 14 lines]
>
> Dave