Difference between revisions of "GNU C library"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
=Checking which GNU C Library version= | =Checking which GNU C Library version= | ||
− | To check which GCLIB you are using run this program. | + | To check which GCLIB you are using run this small c program. |
<source lang=c> | <source lang=c> | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 12: | Line 12: | ||
</source> | </source> | ||
− | or | + | or this shell command |
<source lang=bash> | <source lang=bash> | ||
heth@mars:~/bin$ ldd --version | heth@mars:~/bin$ ldd --version | ||
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19 | ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
Revision as of 06:41, 13 December 2018
Checking which GNU C Library version
To check which GCLIB you are using run this small c program.
#include <stdio.h>
#include <gnu/libc-version.h>
int main(void) {
printf("GNU C Library version is %s\n", gnu_get_libc_version());
printf("GNU C Library release is %s\n", gnu_get_libc_release());
return 0;
}
or this shell command
heth@mars:~/bin$ ldd --version
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19