cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl, Openssl and Makefile.m32

From: Niall Twomey <twomers_at_gmail.com>
Date: Sat, 15 Sep 2007 19:44:07 +0100

OK.

I'm completely frustrated about the mingw32 method (not because it's not
easy but simply because it won't work for me and I truly can't figure out
why!). I decided to try the MSVC method with the hope that it would be
kinder to me.

I downloaded the latest daily snapshot (
http://cool.haxx.se/curl-daily/curl-7.17.1-20070915.zip), navigated to the
appropriate location in my msvc-vared-console and I got this output (minus
all the good stuff :)):

        xcopy release\libcurl.dll . /y
File not found - libcurl.dll
0 File(s) copied
        xcopy release\libcurl.lib . /y
release\libcurl.lib
1 File(s) copied
        xcopy release\libcurld.dll . /y
File not found - libcurld.dll
0 File(s) copied
        xcopy release\libcurld.lib . /y
File not found - libcurld.lib
0 File(s) copied
        xcopy release\libcurl_imp.lib . /y
File not found - libcurl_imp.lib
0 File(s) copied
        xcopy release\libcurld_imp.lib . /y
File not found - libcurld_imp.lib
0 File(s) copied
        xcopy release\*.exp . /y
File not found - *.exp
0 File(s) copied
        xcopy release\*.pdb . /y
File not found - *.pdb
0 File(s) copied
        cd ..\src
        nmake /f Makefile.vc6

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

        link.exe /incremental:no /libpath:"../lib" /nologo
/out:curl.exe/subsystem:console /machine:X86
libcurl.lib wsock32.lib winmm.lib hugehelpr.o
bj writeoutr.obj urlglobr.obj getpassr.obj homedirr.obj curlutilr.obj
strtoofftr.obj mainr.obj curlr.res
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_unbind_s referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_msgfree referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_next_entry referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol _ber_free
referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_next_attribute referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_memfree referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_value_free_len referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_get_values_len referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_first_attribute referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_get_dn referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_first_entry referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_search_s referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_simple_bind_s referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_init referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_set_option referenced in function _Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp__ldap_err2string referenced in function _Curl_ldap
curl.exe : fatal error LNK1120: 16 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

There are two questions I have:
- Should I worry about it not copying things? Shouldn't it copy more than
simply the .lib file? The dll etc?
- And the link errors worry me. Are they due to the fact that some files
haven't been copied?

Any suggestions? I didn't even attempt to try the openssl or zlib stuff yet.

Any help appreciated!!
Received on 2007-09-15