Determine BFD version?
Ben Elliston
bje@wasabisystems.com
Mon Feb 16 03:35:00 GMT 2004
rkufrin@ncsa.uiuc.edu (Rick Kufrin) writes:
> #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
According to the changelogs, BFD_VERSION_STRING was introduced only a
couple of years ago--so I would not be surprised that it's not defined
on some systems. BFD_VERSION, however, has been around since at
least:
Thu Mar 17 18:26:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* bfd-in.h (BFD_VERSION): Use @VERSION@.
If you're finding versions of BFD that are over a decade old, you
probably shouldn't be using them!
Ben
More information about the Binutils
mailing list