Ubuntu编译bochs2.3.5


在Windows下作用bochsdbg习惯了,在Ubuntu下,发现bochs包里竟然没有bochsdbg,要自己编译

$ apt-get source bochs

$ cd bochs-2.3.7

$ ./configure --enable-debugger --enable-disasm --prefix=/usr

$ make

$ sudo cp bochs /usr/bin/bochsdbg

编译错误解决办法

错误一: ISO C++ forbids declaration of ‘hash_map’ with no type

修改:加入hash_map的命名空间,修改bx_debug/symbols.cc

#include <ext/hash_map>

using namespace __gnu_cxx;

错误二:没有找到yacc命令

修改:安装yacc包

sudo apt-get install bison++

相关内容