By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

unresolved external symbols

P: n/a
Hello,

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
lib paths. Here is the error.

uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
Creating library libsq00.lib and object libsq00.exp
libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol
_ldap_unbind@4
referenced in function _q00UsrStatGetUsrStatObject
libq00.lib(LdapAuth.obj) : error LNK2001: unresolved external symbol
_ldap_unbin
d@4
libq00.lib(sig.obj) : error LNK2001: unresolved external symbol _ldap_unbind@4
libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol
_ldap_simple_bi
nd@12 referenced in function _q00UsrStatGetUsrStatObject
libq00.lib(LdapAuth.obj) : error LNK2001: unresolved external symbol
_ldap_simpl
e_bind@12
libq00.lib(sig.obj) : error LNK2001: unresolved external symbol
_ldap_simple_bin
d@12
libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol
_ldap_init@8 re
ferenced in function _q00UsrStatGetUsrStatObject
libq00.lib(LdapAuth.obj) : error LNK2001: unresolved external symbol
_ldap_init@
8
libq00.lib(sig.obj) : error LNK2001: unresolved external symbol _ldap_init@8
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_ber_f
ree@8 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_memfr
ee@4 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_value
_free@4 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_get_v
alues@12 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_next_
attribute@12 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_first
_attribute@12 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_first
_entry@8 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_msgfr
ee@4 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_resul
t@20 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_perro
r@8 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_get_l
derrno@12 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_searc
h@24 referenced in function _q00q0LDQryq0DoLDAP
libq00.lib(LdapAuth.obj) : error LNK2019: unresolved external symbol
_ldap_set_o
ption@12 referenced in function _q00q0LDQryq0DoLDAP
libsq00.dll : fatal error LNK1120: 16 unresolved externals
Here is what i have in my lib and include environment variables.

lib ->c:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\;C:\Program Files\VC98\lib\;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\Lib\

include ->c:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\;c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\;C:\Program Files\VC98\Include\;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\PlatformSDK\Include\

Thanks for your help

Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>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
lib paths. Here is the error.

uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
Creating library libsq00.lib and object libsq00.exp
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
Jun 27 '08 #2

P: n/a
That resolved the issue.

Thanks David

"David Lowndes" wrote:
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
lib paths. Here is the error.

uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
Creating library libsq00.lib and object libsq00.exp
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
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.