curl-library
Re: Can't build CURL with nghttp2 statically
Date: Tue, 28 Nov 2017 00:13:23 +0100
>
> Op 27 nov. 2017, om 23:52 heeft Ray Satiro via curl-library <curl-library_at_cool.haxx.se> het volgende geschreven:
>
> On 11/27/2017 4:53 PM, Thomas van Hesteren via curl-library wrote:
>> As you stated I have updated the code to:
>> i686-w64-mingw32-g++ -Wall -static Programm.cpp -o Programm.exe -I/opt/mingw64/Win32/include -L/opt/mingw64/Win32/lib -static-libgcc -static-libstdc++ -DCURL_STATICLIB -DNGHTTP2_STATICLIB -lcurl -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz -lpthread -lws2_32 -std=c++11
>>
>> However, the errors stay.
>
> Please stop top-posting it makes the conversation harder to follow [1]. The error you are seeing is because I think you can only build libcurl against static or dynamic nghttp2 at one time for windows. Try building libcurl like CPPFLAGS="-DNGHTTP2_STATICLIB" ./configure ... and then libcurl.a expect the regular symbols in nghttp2 static.
>
> You may need LDFLAGS="-static" PKG_CONFIG="pkg-config --static" to build a static curl.exe
>
> [1]: https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post <https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post>
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html
I tried your comment and I build curl with the following command:
CPPFLAGS="-DNGHTTP2_STATICLIB" ./configure --host=i686-w64-mingw32 --prefix=/opt/mingw64/Win32 --with-ssl=/opt/mingw64/Win32 --with-zlib=/opt/mingw64/Win32 --with-nghttp2=/opt/mingw64/Win32 --disable-ldap --disable-ldaps LDFLAGS="-static" PKG_CONFIG="pkg-config --static"
However, when I run the make command it fails on building curl.exe with the following errors:
CCLD curl.exe
curl-slist_wc.o:slist_wc.c:(.text+0x1a): undefined reference to `_imp__curl_slist_append'
curl-slist_wc.o:slist_wc.c:(.text+0x69): undefined reference to `_imp__curl_slist_free_all'
curl-slist_wc.o:slist_wc.c:(.text+0x93): undefined reference to `_imp__curl_slist_free_all'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x113): undefined reference to `_imp__curl_msnprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x177): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x2f0): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x3d4): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x445): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x60b): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x667): more undefined references to `_imp__curl_mfprintf' follow
curl-tool_cb_hdr.o:tool_cb_hdr.c:(.text+0xb7): undefined reference to `_imp__curl_strnequal'
curl-tool_cb_hdr.o:tool_cb_hdr.c:(.text+0xe3): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_cb_prg.o:tool_cb_prg.c:(.text+0x162): undefined reference to `_imp__curl_msnprintf'
curl-tool_cb_prg.o:tool_cb_prg.c:(.text+0x184): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_prg.o:tool_cb_prg.c:(.text+0x254): undefined reference to `_imp__curl_mfprintf'
curl-tool_cb_prg.o:tool_cb_prg.c:(.text+0x34b): undefined reference to `_imp__curl_getenv'
curl-tool_cb_prg.o:tool_cb_prg.c:(.text+0x3a0): undefined reference to `_imp__curl_free'
curl-tool_cb_wrt.o:tool_cb_wrt.c:(.text+0x1db): undefined reference to `_imp__curl_easy_pause'
curl-tool_cfgable.o:tool_cfgable.c:(.text+0x89): undefined reference to `_imp__curl_slist_free_all'
curl-tool_cfgable.o:tool_cfgable.c:(.text+0x6a1): undefined reference to `_imp__curl_mime_free'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x65): undefined reference to `_imp__curl_msnprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0xef): undefined reference to `_imp__curl_msnprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x17c): undefined reference to `_imp__curl_mfprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x1eb): undefined reference to `_imp__curl_mfprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x20e): undefined reference to `_imp__curl_mfprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x231): undefined reference to `_imp__curl_mfprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x254): undefined reference to `_imp__curl_mfprintf'
curl-tool_dirhie.o:tool_dirhie.c:(.text+0x277): more undefined references to `_imp__curl_mfprintf' follow
curl-tool_doswin.o:tool_doswin.c:(.text+0x16b): undefined reference to `_imp__curl_strnequal'
curl-tool_easysrc.o:tool_easysrc.c:(.text+0xe0): undefined reference to `_imp__curl_mvaprintf'
curl-tool_easysrc.o:tool_easysrc.c:(.text+0x105): undefined reference to `_imp__curl_free'
curl-tool_easysrc.o:tool_easysrc.c:(.text+0x348): undefined reference to `_imp__curl_mfprintf'
curl-tool_formparse.o:tool_formparse.c:(.text+0x3e9): undefined reference to `_imp__curl_mime_filedata'
curl-tool_formparse.o:tool_formparse.c:(.text+0x429): undefined reference to `_imp__curl_mime_filename'
curl-tool_formparse.o:tool_formparse.c:(.text+0x462): undefined reference to `_imp__curl_mime_data_cb'
curl-tool_formparse.o:tool_formparse.c:(.text+0x622): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0x6c9): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0x747): undefined reference to `_imp__curl_slist_append'
curl-tool_formparse.o:tool_formparse.c:(.text+0x775): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0xa66): undefined reference to `_imp__curl_slist_append'
curl-tool_formparse.o:tool_formparse.c:(.text+0xb2c): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0xb51): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0xb79): undefined reference to `_imp__curl_strnequal'
curl-tool_formparse.o:tool_formparse.c:(.text+0xcf5): undefined reference to `_imp__curl_mfprintf'
curl-tool_formparse.o:tool_formparse.c:(.text+0xd02): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0xdc2): undefined reference to `_imp__curl_mfprintf'
curl-tool_formparse.o:tool_formparse.c:(.text+0xde0): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0xeef): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0xf7a): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0xfc1): undefined reference to `_imp__curl_mfprintf'
curl-tool_formparse.o:tool_formparse.c:(.text+0x113c): undefined reference to `_imp__curl_mime_init'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1155): undefined reference to `_imp__curl_mime_addpart'
curl-tool_formparse.o:tool_formparse.c:(.text+0x116c): undefined reference to `_imp__curl_mime_subparts'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1197): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x11a4): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1205): undefined reference to `_imp__curl_mime_addpart'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1228): undefined reference to `_imp__curl_mime_headers'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1258): undefined reference to `_imp__curl_mime_filename'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1271): undefined reference to `_imp__curl_mime_type'
curl-tool_formparse.o:tool_formparse.c:(.text+0x128a): undefined reference to `_imp__curl_mime_encoder'
curl-tool_formparse.o:tool_formparse.c:(.text+0x130b): undefined reference to `_imp__curl_mime_addpart'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1349): undefined reference to `_imp__curl_mime_headers'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1378): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x13e0): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x13fe): undefined reference to `_imp__curl_mime_init'
curl-tool_formparse.o:tool_formparse.c:(.text+0x143a): undefined reference to `_imp__curl_mfprintf'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1465): undefined reference to `_imp__curl_mime_data'
curl-tool_formparse.o:tool_formparse.c:(.text+0x147e): undefined reference to `_imp__curl_mime_filename'
curl-tool_formparse.o:tool_formparse.c:(.text+0x151e): undefined reference to `_imp__curl_mime_headers'
curl-tool_formparse.o:tool_formparse.c:(.text+0x154d): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x16bf): undefined reference to `_imp__curl_mime_type'
curl-tool_formparse.o:tool_formparse.c:(.text+0x172b): undefined reference to `_imp__curl_mime_init'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1760): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1791): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x17db): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x17e8): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x182b): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1838): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x187b): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x18bc): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x18e5): undefined reference to `_imp__curl_mime_addpart'
curl-tool_formparse.o:tool_formparse.c:(.text+0x18fc): undefined reference to `_imp__curl_mime_subparts'
curl-tool_formparse.o:tool_formparse.c:(.text+0x191d): undefined reference to `_imp__curl_mime_name'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1980): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x19d5): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x19f8): undefined reference to `_imp__curl_mime_encoder'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1a58): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1a65): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1b12): undefined reference to `_imp__curl_mime_headers'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1b41): undefined reference to `_imp__curl_slist_free_all'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1b76): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1bab): undefined reference to `_imp__curl_mime_free'
curl-tool_formparse.o:tool_formparse.c:(.text+0x1bfa): undefined reference to `_imp__curl_mime_type'
curl-tool_getparam.o:tool_getparam.c:(.text+0xa2): undefined reference to `_imp__curl_strnequal'
curl-tool_getparam.o:tool_getparam.c:(.text+0xb8): undefined reference to `_imp__curl_strequal'
curl-tool_getparam.o:tool_getparam.c:(.text+0x7f2): undefined reference to `_imp__curl_getdate'
curl-tool_getparam.o:tool_getparam.c:(.text+0x1710): undefined reference to `_imp__curl_easy_escape'
curl-tool_getparam.o:tool_getparam.c:(.text+0x17a3): undefined reference to `_imp__curl_msnprintf'
curl-tool_getparam.o:tool_getparam.c:(.text+0x17b4): undefined reference to `_imp__curl_free'
curl-tool_getparam.o:tool_getparam.c:(.text+0x1bb5): undefined reference to `_imp__curl_free'
curl-tool_getparam.o:tool_getparam.c:(.text+0x21af): undefined reference to `_imp__curl_msnprintf'
curl-tool_getparam.o:tool_getparam.c:(.text+0x29f7): undefined reference to `_imp__curl_strequal'
curl-tool_getparam.o:tool_getparam.c:(.text+0x2c64): undefined reference to `_imp__curl_strequal'
curl-tool_getparam.o:tool_getparam.c:(.text+0x2f5a): undefined reference to `_imp__curl_strequal'
curl-tool_help.o:tool_help.c:(.text+0x67): undefined reference to `_imp__curl_version'
curl-tool_help.o:tool_help.c:(.text+0x174): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_help.o:tool_help.c:(.text+0x1b6): undefined reference to `_imp__curl_slist_free_all'
curl-tool_helpers.o:tool_helpers.c:(.text+0xe5): undefined reference to `_imp__curl_strequal'
curl-tool_libinfo.o:tool_libinfo.c:(.text+0xf): undefined reference to `_imp__curl_version_info'
curl-tool_libinfo.o:tool_libinfo.c:(.text+0x38): undefined reference to `_imp__curl_strequal'
curl-tool_main.o:tool_main.c:(.text.startup+0x59): undefined reference to `_imp__curl_global_init'
curl-tool_main.o:tool_main.c:(.text.startup+0x78): undefined reference to `_imp__curl_easy_init'
curl-tool_main.o:tool_main.c:(.text.startup+0xc5): undefined reference to `_imp__curl_easy_cleanup'
curl-tool_main.o:tool_main.c:(.text.startup+0xd3): undefined reference to `_imp__curl_global_cleanup'
curl-tool_msgs.o:tool_msgs.c:(.text+0x57): undefined reference to `_imp__curl_mvsnprintf'
curl-tool_msgs.o:tool_msgs.c:(.text+0x1f3): undefined reference to `_imp__curl_mvfprintf'
curl-tool_msgs.o:tool_msgs.c:(.text+0x204): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x7a3): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0xa45): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0xaca): undefined reference to `_imp__curl_maprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x27b0): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x2d86): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_operate.o:tool_operate.c:(.text+0x2e52): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x3145): undefined reference to `_imp__curl_maprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x3240): undefined reference to `_imp__curl_mprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x32a5): undefined reference to `_imp__curl_easy_strerror'
curl-tool_operate.o:tool_operate.c:(.text+0x385c): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x4fd6): undefined reference to `_imp__curl_maprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x501b): undefined reference to `_imp__curl_free'
curl-tool_operate.o:tool_operate.c:(.text+0x5361): undefined reference to `_imp__curl_getenv'
curl-tool_operate.o:tool_operate.c:(.text+0x5391): undefined reference to `_imp__curl_free'
curl-tool_operate.o:tool_operate.c:(.text+0x53a7): undefined reference to `_imp__curl_easy_perform'
curl-tool_operate.o:tool_operate.c:(.text+0x53f0): undefined reference to `_imp__curl_mprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x546c): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_operate.o:tool_operate.c:(.text+0x5555): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x55de): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x5749): undefined reference to `_imp__curl_mfprintf'
curl-tool_operate.o:tool_operate.c:(.text+0x5771): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_operate.o:tool_operate.c:(.text+0x579b): undefined reference to `_imp__curl_strnequal'
curl-tool_operate.o:tool_operate.c:(.text+0x5974): undefined reference to `_imp__curl_free'
curl-tool_operate.o:tool_operate.c:(.text+0x5a5f): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_operate.o:tool_operate.c:(.text+0x5ac1): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_operate.o:tool_operate.c:(.text+0x5b69): undefined reference to `_imp__curl_strequal'
curl-tool_operate.o:tool_operate.c:(.text+0x5ca1): undefined reference to `_imp__curl_easy_reset'
curl-tool_operhlp.o:tool_operhlp.c:(.text+0x86): undefined reference to `_imp__curl_strnequal'
curl-tool_operhlp.o:tool_operhlp.c:(.text+0x17c): undefined reference to `_imp__curl_easy_escape'
curl-tool_operhlp.o:tool_operhlp.c:(.text+0x19b): undefined reference to `_imp__curl_maprintf'
curl-tool_operhlp.o:tool_operhlp.c:(.text+0x1a6): undefined reference to `_imp__curl_free'
curl-tool_operhlp.o:tool_operhlp.c:(.text+0x1e9): undefined reference to `_imp__curl_maprintf'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0xdb): undefined reference to `_imp__curl_msnprintf'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x1db): undefined reference to `_imp__curl_msnprintf'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x6b6): undefined reference to `_imp__curl_strequal'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x773): undefined reference to `_imp__curl_version_info'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x785): undefined reference to `_imp__curl_strequal'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x857): undefined reference to `_imp__curl_slist_append'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x87d): undefined reference to `_imp__curl_strequal'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x8f7): undefined reference to `_imp__curl_strequal'
curl-tool_paramhlp.o:tool_paramhlp.c:(.text+0x967): undefined reference to `_imp__curl_strequal'
curl-tool_parsecfg.o:tool_parsecfg.c:(.text+0x6f5): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0x203): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0x9cc): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0xa73): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0xabe): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0xc23): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0xc6e): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0xdbd): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0xe3d): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0xf22): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0xf3a): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0x1027): undefined reference to `_imp__curl_easy_setopt'
curl-tool_setopt.o:tool_setopt.c:(.text+0x10e3): undefined reference to `_imp__curl_msnprintf'
curl-tool_setopt.o:tool_setopt.c:(.text+0x10ff): undefined reference to `_imp__curl_easy_setopt'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0x540): undefined reference to `_imp__curl_mfprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0x85b): undefined reference to `_imp__curl_msnprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0xbc9): undefined reference to `_imp__curl_msnprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0xc18): undefined reference to `_imp__curl_mprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0xc72): undefined reference to `_imp__curl_mprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0xd42): undefined reference to `_imp__curl_msnprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0xf4d): undefined reference to `_imp__curl_mfprintf'
curl-tool_urlglob.o:tool_urlglob.c:(.text+0x100b): undefined reference to `_imp__curl_msnprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x2d): undefined reference to `_imp__curl_strequal'
curl-tool_writeout.o:tool_writeout.c:(.text+0x1ae): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x1d7): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x20e): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x261): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x282): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x2a4): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x2c5): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x344): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x365): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x399): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x3ba): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x3ee): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x40f): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x443): undefined reference to `_imp__curl_easy_getinfo'
curl-tool_writeout.o:tool_writeout.c:(.text+0x464): undefined reference to `_imp__curl_mfprintf'
curl-tool_writeout.o:tool_writeout.c:(.text+0x498): undefined reference to `_imp__curl_easy_getinfo'
collect2: error: ld returned 1 exit status
Makefile:822: recipe for target 'curl.exe’ failed
What am I doing wrong?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-28