在 2024-08-13 04:33, Rafael Kitover 写道:
Apologies in advance if this is the wrong place to ask about this.

I recently ran into a problem in a project I'm working on, which is a
binary using the Cygwin runtime, where linking failed to find a CRT
function, stricmp() in this case.

For the time being, I used a trivial reimplementation of this function.

But in general, I'd like to know if it's possible to link CRT
functions from a Cygwin runtime dependent binary.

I think it's sorta safe, as long as you are carefully enough to ensure paired function calls which modify global states (e.g. `malloc`/`calloc`/`strdup` with `free`, `fopen` with `fclose`, `open`/`creat` with `close`, and so on) will be imported from the same DLL.

--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to