2011-10-11 68 views
0

我最近安装了Ubuntu 10.04,并安装了g ++(我用'sudo apt-get install g ++')。bochs-2.3.5在Ubuntu中制作时出错

我想使用的Bochs-2.3.5在本系统中,并做到这一点:

的./configure --enable-调试--enable-DISASM

一切似乎都很好。但是,当我输入“化妆”,出现以下错误信息:

symbols.cc: At global scope: 
symbols.cc:137:10: error: ‘hash_map’ does not name a type 
symbols.cc:145:1: error: ‘hash_map’ does not name a type 
symbols.cc: In constructor ‘context_t::context_t(Bit32u)’: 
symbols.cc:152:5: error: ‘map’ was not declared in this scope 
symbols.cc: In static member function ‘static context_t* context_t::get_context(Bit32u)’: 
symbols.cc:173:12: error: ‘map’ was not declared in this scope 
make[1]: *** [symbols.o] 错误 1 
make[1]:正在离开目录 `/home/song/下载/bochs-2.3.5/bx_debug' 
make: *** [bx_debug/libdebug.a] 错误 2 

我搜索了一会儿,他们说我少STL端口,是真的吗?

回答

0

是的,您缺少部分STL或hash_map.h。你可以运行sudo apt-get install build-essential来解决它。

注意:这将安装GCC和许多库,99.44%的开发人员会发现它足以构建任何软件。

如果仍不起作用,请阅读http://chanvn.com/?p=139