cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem compiling latest CVS in MSVC

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 23 Feb 2004 14:26:05 +0100 (CET)

On Sun, 22 Feb 2004, codemastr wrote:

> When I attempt to compile using MSVC, I an error whenever SIZEOF_CURL_OFF_T
> is referenced. The problem seems to be that the config-win32.h (nor the
> config-mac.h, config-riscos.h, config-vms.h if they matter) have
> SIZEOF_CURL_OFF_T defined like config.h.in does in Linux.

Right. Now I remember Gisle mentioned this before...

> #define SIZEOF_CURL_OFF_T 8
>
> to config-win32.h

I've added this now.

> Then, the MSVC project files in lib/ are outdated (I'd fix them myself but I
> use MSVC 7.0 which uses a different format for the files) It still mentions
> getpass.c, which is no longer used by the library.

I can't fix it either. I'll keep them for now and hope that someone provides
an update, and remove them in the future if no one does.

> Basically adding an #ifdef for _MSC_VER to strtoofft.h to make it go to
> _strtoi64 solved this problem.

So _strtoi64() takes the same arguments as strtoll()?

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-23