我可以在Windows下使用glibc吗? [英] Can I use glibc under windows?

查看:495
本文介绍了我可以在Windows下使用glibc吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以(或可以)在Windows下使用glibc(作为msvcrt的替代品)?我知道这是一个愚蠢的问题,像cygwin这样的答案会弹出,但是我真的在问: 是否可以链接到Windows上的glibc并使用msvcrt之类的所有库函数?

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?

推荐答案

可能存在一种解决方法:如果某人结合了 http://www.musl-libc.org/并使用gcc针对musl libc而不是gcc编译源代码glibc.所以,我不明白为什么没人为Windows编写这样的glibc模拟. :-(

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. :-(

这篇关于我可以在Windows下使用glibc吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆