curl-library
Re: Static linking with mingw without msys (7.29)
Date: Mon, 18 Feb 2013 18:59:41 +0000
Hi
Thanks for your help.
On Mon, Feb 18, 2013 at 1:24 AM, Guenter <lists_at_gknw.net> wrote:
> Am 17.02.2013 17:49, schrieb Andrew Clarkin:
>
>
>> Am I missing something?
>>
> yes, the makefiles in ./samples folder ... ;-)
>
Oops. I tried editing it but not to run it straight.
> the issue you see is most likely that you didnt add the other bunch of
> dependency libs since this version is build with almost everything - hence
> it depends on openssl, libssh2, libidn, zlib ...
> just set a path to your MinGW\bin folder and then just try inside the
> samples dir 'mingw32-make' - that should build the samples and link them
> statically; if not please post exact error output here ...
>
>
I already have MinGW\bin in my path environmental variable. I have the curl
in MinGW\curl.
I ran the mingw32-make and got the following output:
C:\MinGW\curl\samples>mingw32-make
compiling 32-bit samples ...
mingw32-make -f Makefile.m32 SSL=1 SSH2=1 ZLIB=1 RTMP=1 SSPI=1 IDN=1
mingw32-make[1]: Entering directory `C:/MinGW/curl/samples'
gcc -s -static -o chkspeed.exe chkspeed.o -L"../lib" -lcurl -lrtmp -lwinmm
-lssh
2 -lssl -lcrypto -lgdi32 -lcrypt32 -lz -lidn -lwldap32 -lws2_32
../lib\libcurl.a(mprintf.o):(.text+0xff): undefined reference to
`__chkstk_ms'
../lib\libcurl.a(formdata.o):(.text+0x22b): undefined reference to
`__chkstk_ms'
../lib\libcurl.a(formdata.o):(.text+0x15da): undefined reference to
`__chkstk_ms
'
../lib\libcrypto.a(bss_file.o):bss_file.c:(.text+0x93d): undefined
reference to
`__chkstk_ms'
../lib\libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x56d): undefined
reference to
`__chkstk_ms'
../lib\libcrypto.a(err_prn.o):err_prn.c:(.text+0x8b): more undefined
references
to `__chkstk_ms' follow
collect2: ld returned 1 exit status
mingw32-make[1]: *** [chkspeed.exe] Error 1
mingw32-make[1]: Leaving directory `C:/MinGW/curl/samples'
mingw32-make: *** [all] Error 2
It feels like I'm getting closer though...
I'm very grateful for any suggestions.
Kind regards
Andrew
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-18