Re: [Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-15 Thread Rafael Kitover
Just updated this example to be more correct and added a command for MSVC. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-13 Thread Rafael Kitover
вт, 13 авг. 2024 г. в 14:21, LIU Hao : > /usr/include/w32api/comip.h:21:10: fatal error: new.h: No such file or > directory >21 | #include > ``` The reason for this is that the version of the headers in the MSYS environment are very out of date, they are currently on the last sta

Re: [Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-13 Thread LIU Hao
在 2024-08-13 03:12, Rafael Kitover 写道: Just wanted to say that I really appreciate your help with this, I think I was discussing your nano fork with you some years ago. You are welcome. I believe this is enough, because I've used it to build and run some WMI code. Yeah, the fact that they

Re: [Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-12 Thread Rafael Kitover
Just wanted to say that I really appreciate your help with this, I think I was discussing your nano fork with you some years ago. I believe this is enough, because I've used it to build and run some WMI code. I made a repo so you can verify this for yourself: https://github.com/rkitover/mingw-wi

Re: [Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-12 Thread LIU Hao
在 2024-08-12 11:01, Rafael Kitover 写道: +#ifndef __CYGWIN__ operator int() const; operator unsigned int() const; +#endif I suspect this is correct, because on Cygwin `__LONG32` is a typedef for `int`, but then ... +#ifndef __CYGWIN__ _variant_t(unsigned int uiSrc) throw(); +#endif

[Mingw-w64-public] [PATCH] headers: Disable conflicting OLE methods on Cygwin

2024-08-11 Thread Rafael Kitover
On inclusion of the header `comutil.h` on Cygwin platforms errors such as: include/comutil.h:413:3: error: '_variant_t::_variant_t(unsigned int)' cannot be overloaded with '_variant_t::_variant_t(unsigned int)' , are produced because on Cygwin some methods are duplicates via a type alias. Disab