Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2008

Tip: Looking for answers? Try searching our database.

unresolved external symbols

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bash - 12 May 2008 19:24 GMT
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
David Lowndes - 12 May 2008 21:30 GMT
>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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.