Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4008126
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:42:57+00:00 2026-05-20T08:42:57+00:00

I’m compiling libcurl for mingw32 as follows: ./configure –prefix=/Users/daniel/mingw32 CFLAGS= -ABI=32 make make install

  • 0

I’m compiling libcurl for mingw32 as follows:

./configure --prefix=/Users/daniel/mingw32 "CFLAGS= -ABI=32"
make
make install

But when compiling a program using mingw32-gcc:

i386-mingw32-gcc -lcurl -o bin/remote-win.exe remote.c

i get:

In file included from /Users/daniel/mingw32/usr/local/include/curl/curl.h:34,
                 from remote.c:6:
/Users/daniel/mingw32/usr/local/include/curl/curlbuild.h:152:26: sys/socket.h: No such file or directory
In file included from /Users/daniel/mingw32/usr/local/include/curl/curl.h:34,
                 from remote.c:6:
/Users/daniel/mingw32/usr/local/include/curl/curlbuild.h:165: error: syntax error before "curl_socklen_t"
In file included from /Users/daniel/mingw32/usr/local/include/curl/curl.h:35,
                 from remote.c:6:
/Users/daniel/mingw32/usr/local/include/curl/curlrules.h:143: error: size of array `__curl_rule_01__' is negative
/Users/daniel/mingw32/usr/local/include/curl/curlrules.h:153: error: size of array `__curl_rule_02__' is negative

I’m pretty sure the error is because curl_socklen_t does not exist on windows. I’ve tried –target=–-mingw32 but still no success.

Please help

End of configured for:

curl version: 7.21.4 Host setup:
x86_64-apple-darwin10.6.0 Install
prefix: /Users/daniel/mingw32
Compiler: gcc SSL support:
enabled (OpenSSL) SSH support:
no (–with-libssh2) zlib
support: enabled krb4 support:
no (–with-krb4*) GSSAPI
support: no (–with-gssapi)
SPNEGO support: no
(–with-spnego) TLS-SRP support: no
(–enable-tls-srp) resolver:
default (–enable-ares /
–enable-threaded-resolver) ipv6 support: enabled IDN support:
no (–with-libidn) Build
libcurl: Shared=yes, Static=yes
Built-in manual: enabled Verbose
errors: enabled (–disable-verbose)
SSPI support: no
(–enable-sspi) ca cert bundle: no
ca cert path: no LDAP support:
enabled (OpenLDAP) LDAPS support:
enabled RTSP support: enabled
RTMP support: no
(–with-librtmp) Protocols:
DICT FILE FTP FTPS GOPHER HTTP HTTPS
IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP
SMTP SMTPS TELNET TFTP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:42:57+00:00Added an answer on May 20, 2026 at 8:42 am

    Seems like mingw have no sys/socket.h. Just checked on my fresh mingw native install.

    So, your application is not portable to mingw (or configure run was wrong). May be you should search or ask in Mailing List at http://curl.haxx.se

    Thanks for your configure output. You did configed the curl for MacOSX itself, not for a cross-build for mingw. Your should force configure to use mingw’s gcc, also you should to add cross-compilation options (at least ‘–target’ option).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.