[wx-dev] [CVS HEAD] Compile error in include/wx/datetime.h

Vaclav Slavik vslavik at fastmail.fm
Mon Apr 2 10:20:46 PDT 2007


Hi,

Wlodek Szafran wrote:
> > The last version at mingw.org that I could find is 3.4.5 and that
> >
>  > one works correctly and so does 3.4.1.
>
> Actually, with MinGW 3.4.5, I'm getting the erroneous result as
> well:

Are you sure that you didn't mix its files with some other version? 
Because I removed MinGW and reinstalled it from scratch just to be 
sure, and I still don't get this error with the latest MinGW release:
    binutils-2.17.50-20060824-1.tar.tar
    gcc-core-3.4.5-20060117-1.tar.gz
    gcc-g++-3.4.5-20060117-1.tar.tar
    mingw-runtime-3.12.tar.gz
    w32api-3.9.tar.gz
I don't see how could this happen when MinGW doesn't have external 
dependencies that could be different in our cases.

And the two other reports were about gcc 4.1 without mingw patches. I 
can see the bug myself with that, but for all I know, it may be 
completely broken compiler with mingw patches not applied.

> due to wint_t and wxDateTime_t both being typed as short unsigned
> int. 

Yes, that appears to be the case, but for mingw-gcc *3.4*. wint_t is a 
distinct type in 4.1. In other words, gcc-3.4 would be justified in 
failing to compile this, but it works, while gcc-4.1 should work just 
fine, but fails. I'm completely confused uby this :(

Regards,
Vaclav



-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20070402/a43f7363/attachment.pgp


More information about the wx-dev mailing list