Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard C library in mingW

Tags:

c

gcc

standards

I have installed mingW to use gcc, platform windows 7. I am trying to locate the standard C library libc.a in mingW folder. no luck.. is it stored in some other name?

like image 355
KawaiKx Avatar asked Jun 18 '11 07:06

KawaiKx


People also ask

How do I add a library to MinGW?

The ncurses library is available for MinGW. Simply open CMD, or run PowerShell and run mingw-get install ncurses , mingw-get will both download and install the package. Just make sure the path to your MinGW bin folder is linked to your system path, and you should be able to use ncurses without trouble.

Does GCC come with standard library?

Generally speaking, GCC-based compilers come with their own C++ standard library, and so a supported compiler will have a supported standard library. Other compilers (such as clang and ICC) may use an external C++ standard library, and so a supported version might use an older, unsupported C++ standard library.

Does MinGW work for C?

MinGW is a compiler system based on the GNU GCC and Binutils projects that compiles and links code to be run on Win32 (Windows) systems. It provides C, C++ and Fortran compilers plus other related tools.

Where can I find C library?

Libaries consist of a set of related functions to perform a common task; for example, the standard C library, 'libc. a', is automatically linked into your programs by the “gcc” compiler and can be found at /usr/lib/libc. a. Standard system libraries are usually found in /lib and /usr/lib/ directories.


1 Answers

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

like image 110
Ignacio Vazquez-Abrams Avatar answered Sep 28 '22 09:09

Ignacio Vazquez-Abrams