Which package contains the C standard library?
4 Answers
This should be available in the glibc package Though most all the packages essential to development and code-building can be found in build-essential
1The package name is libc6, if you are trying to build a C app then you will want to install the build-essential package which brings the development packages.
1It's libc6 / libc6-dev. For cross compilation for 64 bit / 32 bit systems, you can install libc6-amd64 libc6-dev-amd64 or *i386 repsectively.
The -dev packages are the ones that contain /usr/include/stdlib.h.
In general, you can find which package a file belongs to using the command:
dpkg-query -S /path/to/file
In this case, this does depend on you first knowing which file is the C standard library: /lib/libc6.so.6