[phobos] phobos commit, revision 1890
Steve Schveighoffer
schveiguy at yahoo.com
Tue Aug 17 09:54:57 PDT 2010
----- Original Message ----
> From: Andrei Alexandrescu <andrei at erdani.com>
> To: Discuss the phobos library for D <phobos at puremagic.com>
> Sent: Tue, August 17, 2010 12:47:20 PM
> Subject: Re: [phobos] phobos commit, revision 1890
>
> Try now. I've reverted back to the old 32-bit routines for Windows.
>
> To work with large files on win32 one must use _fseeki64 and _ftelli64.
>However, if I try to link such functions I get linker errors. Furthermore,
>grepping the windows/lib/ files for either symbol yields no results.
>
> I've searched around and it looks like those functions are defined in
>libcmt.lib. Are we allowed to distrubute that?
This will not work. You cannot mix C runtime libraries. In general, you cannot
call any microsoft C runtime library functions. However, system calls are still
fine as the DMC runtime is built on top of those.
> Otherwise, Walter, can you define 64-bit seek and tell routines in your stdio
>implementation?
This is an option, another is to implement the appropriate fseek and ftell
functions in D, and use those instead. This is what I had to resort to for the
HANDLE <==> file descriptor functions that I need for std.process.
-Steve
More information about the phobos
mailing list