[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Linking errors
The problems are solved by linking with ws2_32.lib for all the wsacleanup
errors and either commenting out ldap_memfree or putting in a #define
ldap_memfree(p) free(p) for the ldap_memfree error.
-----Original Message-----
From: Wieland, Doug [mailto:Doug.Wieland@SoftwareAG-USA.com]
Sent: Tuesday, May 22, 2001 3:57 PM
To: openldap-software@OpenLDAP.org
Subject: Linking errors
Hello,
I am new to LDAP and compiling my first program on Windows that does and
ldap_init(), ldap_search() and prints out the return values. I have
included the olber32.lib and oldap32.lib. I am receiving the link errors
listed below. Does anyone have any suggestions?
Linking...
Creating library Debug/ldapprototype.lib and object
Debug/ldapprototype.exp
ldapprototype.obj : error LNK2001: unresolved external symbol _ldap_memfree
oldap32.lib(unbind.obj) : error LNK2001: unresolved external symbol
__imp__WSACleanup@0
oldap32.lib(open.obj) : error LNK2001: unresolved external symbol
__imp__WSACleanup@0
oldap32.lib(open.obj) : error LNK2001: unresolved external symbol
__imp__WSAStartup@8
oldap32.lib(open.obj) : error LNK2001: unresolved external symbol
__imp__htonl@4
olber32.lib(encode.obj) : error LNK2001: unresolved external symbol
__imp__htonl@4
oldap32.lib(open.obj) : error LNK2001: unresolved external symbol
__imp__htons@4
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__inet_ntoa@4
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__connect@12
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__socket@12
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__setsockopt@20
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__WSAGetLastError@0
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__gethostbyname@4
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__inet_addr@4
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__ntohs@4
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet@8
oldap32.lib(os-ip.obj) : error LNK2001: unresolved external symbol
__imp__select@20
olber32.lib(io.obj) : error LNK2001: unresolved external symbol
__imp__send@16
olber32.lib(io.obj) : error LNK2001: unresolved external symbol
__imp__ntohl@4
olber32.lib(decode.obj) : error LNK2001: unresolved external symbol
__imp__ntohl@4
olber32.lib(io.obj) : error LNK2001: unresolved external symbol
__imp__recv@16
Debug/ldapprototype.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.
ldapprototype.exe - 22 error(s), 0 warning(s)
Thanks,
Doug