歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu編譯bochs2.3.5

Ubuntu編譯bochs2.3.5

日期:2017/2/28 16:33:55   编辑:Linux教程

在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++

Copyright © Linux教程網 All Rights Reserved