如果单纯从完成下载例子来说
下面的依赖库编译libcurl选哪些啊?楼顶我编译的时候什么也没加。
# Edit the path below to point to the base of your Zlib sources.
ifndef ZLIB_PATH
ZLIB_PATH = ../../zlib-1.2.8
endif
# Edit the path below to point to the base of your OpenSSL package.
ifndef OPENSSL_PATH
OPENSSL_PATH = ../../openssl-1.0.2a
endif
# Edit the path below to point to the base of your LibSSH2 package.
ifndef LIBSSH2_PATH
LIBSSH2_PATH = ../../libssh2-1.5.0
endif
# Edit the path below to point to the base of your librtmp package.
ifndef LIBRTMP_PATH
LIBRTMP_PATH = ../../librtmp-2.4
endif
# Edit the path below to point to the base of your libidn package.
ifndef LIBIDN_PATH
LIBIDN_PATH = ../../libidn-1.32
endif
# Edit the path below to point to the base of your MS IDN package.
# Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1
#
https://www.microsoft.com/en-us/download/details.aspx?id=734ifndef WINIDN_PATH
WINIDN_PATH = ../../Microsoft IDN Mitigation APIs
endif
# Edit the path below to point to the base of your Novell LDAP NDK.
ifndef LDAP_SDK
LDAP_SDK = c:/novell/ndk/cldapsdk/win32
endif
# Edit the path below to point to the base of your nghttp2 package.
ifndef NGHTTP2_PATH
NGHTTP2_PATH = ../../nghttp2-1.0.0
endif
【 在 javame (yimin) 的大作中提到: 】
完全是照着简书例子做的,跑不通啊
https://www.jianshu.com/p/0413698b7b3d
gcc curldown.c -I ./include/curl -L. lcurl
从错误来看,怎么会链接dll的符号表的。猝然libcurl的版本是7.49-1。
我是直接编译lib下面的makefile.w32文件,并没有把一些依赖库编译进去。
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x97): undefined
reference to `_imp__curl_easy_init'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0xcb): undefined
reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0xee): undefined
reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x110): undefine
d reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x11d): undefine
d reference to `_imp__curl_easy_perform'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x148): undefine
d reference to `_imp__curl_easy_getinfo'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x155): undefine
d reference to `_imp__curl_easy_cleanup'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x210): undefine
d reference to `_imp__curl_easy_init'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x272): undefine
d reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x2a1): undefine
d reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x2d3): undefine
d reference to `_imp__curl_easy_setopt'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x2e4): undefine
d reference to `_imp__curl_easy_perform'
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cckHkjRS.o:curldown.c:(.text+0x2fc): undefine
d reference to `_imp__curl_easy_cleanup'
collect2.exe: error: ld returned 1 exit status
Administrator@USER-20151226SM /d/kugou/comic
$
--
FROM 124.78.137.*