bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MSVC support: documentation


From: Michael Goffioul
Subject: Re: MSVC support: documentation
Date: Sun, 11 Sep 2011 22:05:25 +0100

On Sun, Sep 11, 2011 at 8:59 PM, Bruno Haible <address@hidden> wrote:
> In a current situation, a number of gnulib modules compile flawlessly
> on MSVC 9. Therefore it's time to document its current status.
>
> Further fixes for this platform are, of course, welcome.

For quite some time now, I've been tweaking my local copy of gnulib in order
to compile octave with MSVC. I put the current diff I have (not against the
very latest source, maybe gnulib from about 1 week ago). It is *not* meant
to be a ready-to-use patch, but more to illustrate the problems I had:
- O_ACCMODE is not defined
- PATH_MAX is not defined (though stdlib.h has an equivalent _MAX_PATH)
- ending a path with double slashes lead to problems (don't remember which
ones, but Windows didn't like it)
- MSVC does not support dynamic C array: array size must be a constant,
not a variable
- ssize_t does not exist
- rename m4 test produced filesystem corruption that lead to full recheck on
the next reboot; I had to disable the test completely

I hope this will be useful.

Michael.

Attachment: gnulib.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]