Difference between revisions of "GNU C library"
From Teknologisk videncenter
m (→Checking which GNU C Library version) |
m |
||
Line 10: | Line 10: | ||
return 0; | return 0; | ||
} | } | ||
+ | </source> | ||
+ | |||
+ | or | ||
+ | |||
+ | <source lang=bash> | ||
+ | heth@mars:~/bin$ ldd --version | ||
+ | ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19 | ||
+ | Copyright (C) 2014 Free Software Foundation, Inc. | ||
+ | This is free software; see the source for copying conditions. There is NO | ||
+ | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
+ | Written by Roland McGrath and Ulrich Drepper. | ||
+ | heth@mars:~/bin$ | ||
</source> | </source> | ||
Revision as of 06:40, 13 December 2018
Checking which GNU C Library version
To check which GCLIB you are using run this 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
heth@mars:~/bin$ ldd --version
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
heth@mars:~/bin$