Determine BFD version?
Rick Kufrin
rkufrin@ncsa.uiuc.edu
Mon Feb 16 01:24:00 GMT 2004
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
More information about the Binutils
mailing list