473,225 Members | 1,361 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

unresolved external symbols

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
2 2679
>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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim | last post by:
All, I'm trying to debug a Python GPF while running a script that we've written. After fixing up some of the paths for the Python build and successfully building Python from ActiveState source,...
4
by: Rodolphe | last post by:
Hello, I'm French so sorry for my approximate English. When I try to compile a project under Visual C++ 6.0, I've got the following errors : applicap.obj : error LNK2001: unresolved external...
5
by: Oliver | last post by:
Hi, I have a problem with a shared library of mine. I compile the *.o files and then generate the .so lib with: cc -shared libjava_vrpn.so *.o When I then run my program I get an error for an...
8
by: Scott Allen | last post by:
Hello, I'm new to C++ development and I'm trying out figure out the cause of an 'unresolved external symbol' error that I'm receiving when compiling. Here is some history on what I'm doing: I...
4
by: Alfonso Morra | last post by:
Ok, this is a bit of a quick hack. I have a flag set in another file (the default value of the flag is 0. In certain files, access to the flag symbol is not available - I want to know if unresolved...
3
by: Kevin Burton | last post by:
I am trying to use managed C++ but I am getting the following link errors: Metadata file 'D:\Projects\Visa\AddressVerification\AddressVerificat...
2
by: Ian Taite | last post by:
Help, I am trying to nail a linking problem, to avoid having to lose about 2 weeks work. I have a backup of my project that compiles and links OK however changes I made sometime since then have...
2
by: Maydogg6 | last post by:
I need a hand with some stubborn link errors. I'm trying to recreate and old program from 6.0 into .NET, but for some reason when I try to compile I'm getting linking errors for all my function...
1
by: shubhendutripathi | last post by:
Hi, I have written an EXE which uses getopt call. It gets compiled and linked properly on HPUX machine. But when I try to build the same on NT machine using Microsoft Studio 6.0, it gives...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.