I am trying to use the BFD routines in libbfd, but have run into trouble
with the header file. The simple test program:
fails with a large number of errors on my machine. Here is a small
In file included from c.c:1:
/usr/include/bfd.h:352: warning: no semicolon at end of struct or union
/usr/include/bfd.h:352: parse error before `PARAMS'
/usr/include/bfd.h:357: parse error before `}'
/usr/include/bfd.h:361: parse error before `PARAMS'
/usr/include/bfd.h:364: parse error before `)'
/usr/include/bfd.h:368: parse error before `PARAMS'
/usr/include/bfd.h:371: `PARAMS' declared as function returning a function
/usr/include/bfd.h:372: parse error before `unsigned'
/usr/include/bfd.h:375: parse error before `PARAMS'
/usr/include/bfd.h:382: parse error before `PARAMS'
/usr/include/bfd.h:387: parse error before `PARAMS'
/usr/include/bfd.h:391: parse error before `PARAMS'
/usr/include/bfd.h:397: parse error before `PARAMS'
/usr/include/bfd.h:399: `PARAMS' declared as function returning a function
There is much more!
OK, what am I missing. Is there a file I must include first? Or was my
bfd.h generated improperly? I have the bfd.h included with version
2.5.2l.17 of the binutils release, libbfd.so.2.5.2l.11, and gcc 2.7.0.
I am running kernel 1.2.8 with ELF support.
What is going on? I never had this much trouble with a linux header!
On a side note, I tried to make the docs for bfd and failed at that
also. No version of texinfo wanted to work for me. I got errors with
the one included with the distribution... If anyone has a postscript
version they would be willing to share, I would be very pleased.
Thanks for any help.