Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use glibc under windows?

Tags:

c++

windows

glibc

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?

like image 227
rubenvb Avatar asked Jan 22 '10 19:01

rubenvb


People also ask

Where is glibc used?

What is glibc? The GNU C Library project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. These libraries provide critical APIs including ISO C11, POSIX.

What's the difference between gcc and glibc?

GCC is the C compiler. Glibc is the C library. However, isn't it an absolute necessity for a compiler and the standard library bundled together as a C implementation? For example, the C library contains ABI and compiler specific stuff like <limits.

Does MinGW use glibc?

MinGW does not build against glibc, it builds against msvcrt. As such, it uses libmsvcrtXX.

Does gcc include glibc?

typically if you want to go newer than those, glibc will generally work with the version of gcc that was in development at the time of the release. e.g. glibc-2.23 was released 18 Feb 2016 and gcc-6 was under development at that time, so glibc-2.23 will work with gcc-4.7 through gcc-6.


1 Answers

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

like image 170
nos Avatar answered Sep 20 '22 23:09

nos