This won't help detect which library is actually in use at run-time, because the macros are examined only at compile-time.
On Oct 18, 4:36 pm, Jason Moxham <[email protected]> wrote: > On Sunday 18 October 2009 21:34:40 Dan Grayson wrote:> Suppose I link a > program dynamically with libgmp, and at run time > > libgmp is being impersonated by libmpir. Is there a (reliable) way > > for the program to tell? > > > I ask, because I like to arrange the copyright message of Macaulay2 to > > display the copyright of libraries in use, so it's nice to know which > > libraries are in use. > > > I checked mpir.info without any luck. > > These macros are defined only in mpir > > #define __MPIR_VERSION 1 > #define __MPIR_VERSION_MINOR 3 > #define __MPIR_VERSION_PATCHLEVEL 0 > > Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en -~----------~----~----~----~------~----~------~--~---
