473,397 Members | 2,116 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,397 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 2694
>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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.