2011-10-11 69 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