Ubuntu编译bochs2.3.5
[日期:2010-07-06]来源:Ubuntu社区作者:tigerlau225[字体:]
在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++
0
Ubuntu十条不为人知的技巧介绍
Ubuntu下Python和Pexpect模块的安装
学做任何事得按部就班,急不得