Re: How to find libs version (Newlib and UCLIBC) ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Name lastlong <brew_pt@xxxxxxxxx> writes:

>> Not that I know of.  Some libraries define macros with
>> their version
>> information; e.g., glibc defines __GLIBC__ and
>> __GLIBC_MINOR__.
>> However, I don't know of any standard approach.1
>
> Thanks. I dint check the similar defines for Newlib or UClibc. 
> How do we use above in application? 
> Shall I check pre-processed files (source files where this define is used)?

For glibc you would #include almost any glibc header file, and then do
things like

#if __GLIBC__ == 2 && __GLIBC_MINOR__ == 11

I don't know about uClibc and newlib.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux