I have this C code:
asection *s;
s = bfd_get_section_by_name( abfd, "__exported_do_funs" );
Which gives me a compile error:
file.o: In function `do_listdos':
file.c:9500: undefined reference to `bfd_get_section_by_name'
collect2: ld returned 1 exit status
So I've found this is part of binutils I believe, and installed it:
Installed Packages
binutils.i386 2.17.50.0.6-26.el5 installed
binutils-devel.i386 2.17.50.0.6-26.el5 installed
But still get the same compile error. Am I missing something?
I'm running: gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
This is in my header file:
#include <bfd.h> /* Eizneckam's BFD Code */
The gcc syntax running is:
/usr/bin/gcc -c -g -g3 -Wall -DREQUESTS -DSMAUG14 -DTIMEFORMAT -DREGEX file.c
/usr/bin/gcc -lcrypt -lz -lbfd -liberty -lm -lmysqlclient -lnsl -L/usr/lib/mysql -I/usr/include/mysql/ -o
The lib is found in /usr/lib/libbfd.a