cURL / Mailing Lists / curl-library / Single Mail


RE: libcurl 7.17.1 'socklen_t' undefined compile errorVisualStudio2005

From: Max L. Eidswick <>
Date: Thu, 22 Nov 2007 10:29:24 -0700

Hi, Yang --

2007/11/21, Max L. Eidswick wrote:

> Hi, Yang -- OK, I am moving forward again. I had to put the winsock2.h
> before windows.h.


>I think you might have a problem somewhere in the VS2005 or PSDK
installation or configuration.

I found several references to this problem (not cURL related), so it appears to be a MS issue.

>Are you creating a new empty project with the wizard or just copying
over another one and just removing everything ? The snippets I've
posted were only intended to try to diagnose the initial problem you

I have tested this both with a current buildable (non-curl) project and a simple test one.

>Are you using precompiled headers ? Have you 'cleaned' between builds
? If it actually is a new and clean project winsock.h should not be
pulled in.

No, my build process at this stage is to completely recompile all source modules, headers, and libraries until the project itself it
stable and working.

> Are there any other obvious Windows
> problems (like runtime libraries, etc.) that I should look out for?

>Read docs/INSTALL section Win32 (line 145 onwards).

I have gone over that material and what I have been able to find on the web so far. Pretty thin unless I have missed something. I
am taking notes on the build/setup process and will send it to you in a PDF as soon as all is working ok.


Received on 2007-11-22