开发者

Can I use glibc under windows?

开发者 https://www.devze.com 2022-12-17 16:31 出处:网络
Is it (or would it) be possible to use glibc under windows (as a replacement of msvcrt)? I know this is a stupid question, and answers like cygwin will pop up, but I am really asking:

Is it (or would it) be possible to use glibc under windows (as a replacement of msvcrt)? I know this is a stupid question, and answers like cygwin will pop up, but I am really asking: is it possible to link to glibc on windows and use all开发者_如何学编程 library functions like with msvcrt?


glibc used to work on different *nixes once , these days glibc is quite Linux specific. It will certainly not work on windows.


A possible workaround could exist: if someone combines http://0xef.wordpress.com/2012/11/17/emulate-linux-system-calls-on-windows/ with http://www.musl-libc.org/ and compiles source code with gcc against musl libc instead of glibc. So, I can't understand why nobody writes a such glibc analog for Windows. :-(

0

精彩评论

暂无评论...
验证码 换一张
取 消