Re: [Mingw-w64-public] wine FTBFS with mingw64 gcc 11: undefined reference to `sincos'

2021-05-15 Thread Jacek Caban
On 15/05/2021 04:24, lhmouse wrote: 在 5/15/21 1:27 AM, Jacek Caban 写道: I think that the decision was unfortunate on GCC side, but there is little we can do. We will probably need to provide it in msvcrt importlibs. Please try the attached patch, it should help. Doesn't GCC transform such

Re: [Mingw-w64-public] My new attempt to support msvc stl for mingw-w64

2021-05-15 Thread sotrdg sotrdg
because they are already available on windows. We do not need to install any dlls for msvcp. GCC can link to libc++ too. Get Outlook for Android From: JonY via Mingw-w64-public Sent: Saturday, May 15, 2021 11:30:45 AM To:

Re: [Mingw-w64-public] My new attempt to support msvc stl for mingw-w64

2021-05-15 Thread sotrdg sotrdg
It is just to link msvcp with asm macros to rename symbols. Although It looks tough i think mingw-w64 did a lot of similar things. Get Outlook for Android From: JonY via Mingw-w64-public Sent: Saturday, May 15, 2021 11:30:45 AM To:

Re: [Mingw-w64-public] My new attempt to support msvc stl for mingw-w64

2021-05-15 Thread JonY via Mingw-w64-public
On 5/15/21 2:27 PM, sotrdg sotrdg wrote: Do you think that is useful? I’ve heard a lot of people they are not happy with shared linking with libstdc++-6.dll. They want to shared linking with msvcp. some initial attempts · expnkx/MinGW-w64-STL@a2d31c6

Re: [Mingw-w64-public] [PATCH] _HUGE for ucrt

2021-05-15 Thread JonY via Mingw-w64-public
On 5/15/21 2:03 PM, Liu Hao wrote: 在 2021-05-15 21:01, JonY via Mingw-w64-public 写道: On 5/15/21 12:58 PM, JonY wrote: Hi, Attached patch OK? Simplified patch. Is it possible to declare it as `const double`? It need not be mutable. The prototype declares it as a non-const, will it be

[Mingw-w64-public] My new attempt to support msvc stl for mingw-w64

2021-05-15 Thread sotrdg sotrdg
Do you think that is useful? I’ve heard a lot of people they are not happy with shared linking with libstdc++-6.dll. They want to shared linking with msvcp. some initial attempts · expnkx/MinGW-w64-STL@a2d31c6

Re: [Mingw-w64-public] [PATCH] _HUGE for ucrt

2021-05-15 Thread Liu Hao
在 2021-05-15 21:01, JonY via Mingw-w64-public 写道: On 5/15/21 12:58 PM, JonY wrote: Hi, Attached patch OK? Simplified patch. Is it possible to declare it as `const double`? It need not be mutable. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] _HUGE for ucrt

2021-05-15 Thread JonY via Mingw-w64-public
On 5/15/21 12:58 PM, JonY wrote: Hi, Attached patch OK? Simplified patch. >From ff422cf04d8f9e105c68ac2ffdd25da4add8f8fb Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sat, 15 May 2021 12:56:51 + Subject: [PATCH] crt: _HUGE for UCRT Signed-off-by: Jonathan Yong

[Mingw-w64-public] [PATCH] _HUGE for ucrt

2021-05-15 Thread JonY via Mingw-w64-public
Hi, Attached patch OK? From c9bef0201c412ee20531fdd777978644e0eef76c Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sat, 15 May 2021 12:56:51 + Subject: [PATCH] crt: _HUGE for UCRT Signed-off-by: Jonathan Yong <10wa...@gmail.com> --- mingw-w64-crt/Makefile.am | 1 +

Re: [Mingw-w64-public] [PATCH] include/{guiddef, _mingw}: Implement `__uuidof` with overloading instead of specialization

2021-05-15 Thread Liu Hao
在 5/15/21 1:52 PM, Biswapriyo Nath 写道: Now this got even worse :) The test file in https://sourceforge.net/p/mingw-w64/mailman/message/37282360/ shows error like this: unknwnbase.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)': unknwnbase.h:84:29: error: '__mingw_uuidof_v2' was

[Mingw-w64-public] UCRT: Issues with HUGE and _HUGE macros

2021-05-15 Thread Christoph Reiter
This works with msvcrt but fails with ucrt. Noticed this while building graphviz. HUGE_VAL works, while _HUGE and HUGE fail. #include #include int main(void){ printf("%f %f %f\n", HUGE, _HUGE, HUGE_VAL); return 0; }

[Mingw-w64-public] stdio.h: redefinition issues with UCRT

2021-05-15 Thread Christoph Reiter
Hey, while trying to get everything to build with UCRT in MSYS2 we noticed quite a few errors that come down to the following: // gcc -D__USE_MINGW_ANSI_STDIO=1 a.c #define snprintf _snprintf #include int main (){return 0;} i.e. snprintf is defined before stdio.h, messing it up I see that