Ubuntu – ‘undefined reference to symbol ‘pthread_create@@GLIBC_2.2.5’ while compiling bochs

compilinggcc

I'm trying to compile bochs with this command:

./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci

it works, but then when I run make I got:

usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

Any Help ? :/

Best Answer

You need to add -lpthread to the Makefile under LIBS