完全是照着简书例子做的,跑不通啊
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
$
--
修改:javame FROM 124.78.137.*
FROM 124.78.137.*