twiddler compile problem
adam at os.inf.tu-dresden.de
Sat Feb 26 20:32:51 CET 2005
On Sat Feb 26, 2005 at 11:29:20 -0600, Jayesh Salvi wrote:
> I am facing problems with getting twiddler to compile. I have
> binutils-184.108.40.206.2-5. Here is the error. I have header files in
> place, I think this is linking problem but I have /usr/lib/libbfd.a
> and /usr/lib/libopcodes.a.
> [jayesh at orion twiddler]$ make
> gcc -W -Wall -g -O2 -DTARGET_X86=1 -lbfd -lopcodes -o twiddler_x86 twiddler.c
> /tmp/ccKfu4xD.o(.text+0x4a): In function `disasm_section':
> /home/jayesh/l4/tool/twiddler/twiddler.c:158: undefined reference to
> undefined reference to `print_insn_i386'
Are the .so fils there as well? Looks like not.
Anyway, something like this should work too, looks like I got that wrong
gcc -W -Wall -g -O2 -DTARGET_X86=1 -o twiddler_x86 twiddler.c -lbfd -lopcodes -liberty
Adam adam at os.inf.tu-dresden.de
More information about the l4-hackers