version(Windows)

David Friedman dvdfrdmn at users.ess-eff.net
Mon Dec 4 20:12:25 PST 2006


Downs wrote:
> Marjancek wrote:
> 
>> I'm having a hard time trying to compile with gdc. I make use of
>> windows functions from std.path, but it seams that the version is not
>> set to Windows, and so I get an ugly assert(0) from path.d.
>>
>> I've tried using -fversion=Windows, but then I get an error that this
>> is a reserved word. Any ideas?
>>
>> Thanks,
>> Mariano.
> 
> 
> I have encountered the same problem. This seems to be the fault of gdc, 
> which should probably set version=Windows, not only version=Win32, as it 
> does now (or at least allow us to set -fversion=Windows by ourselves).
> In the meantime, an "acceptable" fix is to change all occurences of 
> version(Windows) in the header files to version(Win32). Ugly, but there 
> you go.

Are you using Cygwin?  Enabling version(Windows) or version(Win32) would 
cause a binary incompatibility with Phobos.  I am thinking it would be 
better to just remove the restrictions from the Windows headers.

David




More information about the D.gnu mailing list