curl-library
Re: build libcurl under win32
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Mar 2007 11:51:28 +0100 (CET)
Date: Wed, 14 Mar 2007 11:51:28 +0100 (CET)
On Tue, 13 Mar 2007, Wei Weng wrote:
> cl.exe /O2 /DNDEBUG /MD /DCURL_STATICLIB /I. /I../include /nologo /W3
> /G
> X /DWIN32 /YX /FD /c /DBUILDING_LIBCURL /Fo"release\base64.obj" .\base64.c
> base64.c
> .\hostip.h(107) : error C2061: syntax error : identifier 'socklen_t'
> .\hostip.h(111) : error C2059: syntax error : '}'
Okay, the lib/config-win32.h file has the socklen_t typedefed within an #ifdef
for the HAVE_WS2TCPIP_H define, which seems to be set for normal MSVC builds.
I figure we should then better make hostip.h include that header file in the
top. Does that fix your problem if you do?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-03-14