вс, 25 авг. 2024 г. в 13:44, LIU Hao :
> You can't use MSVCRT functions by simply linking with `-lmsvcrt`; it would
> precede default
> libraries, specifically, the Cygwin DLL.
I explained this but some US government shits are rewriting my emails
so you did not see my explanation.
If you do:
gc
在 2024-08-25 07:15, Rafael Kitover 写道:
The danger is further reduced by the fact that the Cygwin runtime
itself uses MSVCRT.
However, the main issue is trivial functions like `stricmp()` or
`sprintf_s()` which are safe and do not modify global state.
My point is that if you wish to build somet
сб, 24 авг. 2024 г. в 14:20, LIU Hao :
> I think that linking MS CRT within a Cygwin program could be dangerous, as
> Cygwin has its own CRT.
> mingw-w64 headers should only be used to access Windows APIs.
As you previously said, this is potentially dangerous for functions
that modify global stat
在 2024-08-24 21:31, Rafael Kitover 写道:
I just used this as an example, what I am proposing is a general
solution for calling non-standard MSVCRT functions from Cygwin and
possibly other systems with a similar problem using the MinGW headers.
I think that linking MS CRT within a Cygwin program c
сб, 24 авг. 2024 г. в 07:27, LIU Hao :
> If you are compiling for Cygwin, there's a standard one in POSIX:
>
>https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
I just used this as an example, what I am proposing is a general
solution for calling non-standard MSVCRT fun
在 2024-08-24 15:02, Rafael Kitover 写道:
Currently, when building for and using the Cygwin runtime,
non-standard CRT functions are not available in the headers, and there
is no import library for the CRT to link them.
For example, the Cygwin "string.h" does not define `stricmp()`, a
non-standard M
Currently, when building for and using the Cygwin runtime,
non-standard CRT functions are not available in the headers, and there
is no import library for the CRT to link them.
For example, the Cygwin "string.h" does not define `stricmp()`, a
non-standard MSVCRT function, which I will use as an ex