cURL / Mailing Lists / curl-library / Single Mail

curl-library

building with MSVC

From: David Byron <DByron_at_everdreamcorp.com>
Date: Mon, 23 Feb 2004 11:14:02 -0800

I tried to build current cvs with MSVC and had a few problems:

1. No ca-bundle.h (fixed with patch)
2. No getdate.c (fixed with patch)
3. No hugehelp.c (fixed with patch)
4. No strtoofft.h in src.

I'm hoping the patches for #1-#3 are OK. Not sure what the right way to fix
#4 is. I've seen discussion of this on the list and it seems like the move
to a common directory for libcurl and curl.exe is the solution.

I have a feeling Daniel is in the middle of doing this right now. Is there
anything I can do to help?

I tried adding ../lib to the include path when compiling in src, but that
didn't work:

        cl.exe /MD /O2 /D "NDEBUG" /I "../lib" /I "../include" /I
"c:\src\cobra\
zlib" /nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
homedir.c
homedir.c
        cl.exe /MD /O2 /D "NDEBUG" /I "../lib" /I "../include" /I
"c:\src\cobra\
zlib" /nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c main.c
main.c
../lib\config-win32.h(35) : warning C4005: 'SIZEOF_CURL_OFF_T' : macro
redefinit
ion
        setup.h(116) : see previous definition of 'SIZEOF_CURL_OFF_T'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\winsock2.h(99) : error C2011: 'fd_set' :
'stru
ct' type redefinition
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\winsock2.h(134) : warning C4005: 'FD_SET'
: ma
cro redefinition
        C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\winsock.h(83) : see previous
definitio
n of 'FD_SET'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\winsock2.h(143) : error C2011: 'timeval' :
'st
ruct' type redefinition

and so on...

These patches seem to work fine with both MSVC 6 and 7, but I run into the
same errors with both as far as strtoofft.h goes.

I'm also submitting a small patch for docs/INSTALL.

-DB

Received on 2004-02-23