This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Determine BFD version?


Hi - I am wondering if there's a way to determine the version of
BFD on a given computer.  I'm not having luck finding this
in the documentation and a search of the ML archive didn't
come back with a lot.  I have some current code that looks like
this:

#if HAVE_BFD_H && defined(BFD_VERSION)
# if defined(BFD_VERSION_STRING)
    printf("%s\n", BFD_VERSION_STRING);
# else
    printf("%s\n", BFD_VERSION);
# endif
#else
    printf("n/a\n");
#endif

But this doesn't work for all systems (GNU/Linux) that I've tried (I
will get the "n/a" fallback).  Any suggestions/tips appreciated...

Thanks,
Rick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]