curl-library
Re[2]: Some fixes for cmake build.
Date: Tue, 30 Mar 2010 21:31:55 +0400
Hello Bill,
Tuesday, March 30, 2010, 7:53:33 PM, you wrote:
BH> I am not sure what your problem is because I did built with VS2008??
BH> socklen_t was not a problem for me...
That's perhaps because it was defined as 'int', and not as 'socklen_t'
in curlbuild.h.
BH> I will investigate more this afternoon. Is the problem when you build
BH> curl, or when you use curl?
The problem arises when I use curl (namely, curlbuild.h) without
WIN32_LEAN_AND_MEAN defined. The following sequence of #includes
leads to errors:
// Somewhere in your application:
#include <winsock.h> /* NB: <windows.h> includes it */
// In curlbuild.h when it pulls ws32tcpip.h:
#include <winsock2.h>
#include <ws32tcpip.h> /* not sure if it causes the errors, but it
surely adds lots of error messages */
Anyway, after seeing the 'curlbuild.h.dist' I have come to a
conclusion that on Windows, CURL_TYPEOF_SOCKLEN_T should be int. Thus,
curlbuild.h need not include winsock2.h, and the problem should be
gone.
-- Best regards, Tetetest mailto:tetetest_at_rambler.ru ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-03-30