In Ubuntu, GCC3.4 and 4.3 coexist and Bochs are compiled through

Source: Internet
Author: User
I have been busy for two days and finally made a major breakthrough tonight ~ The OS was hard to understand. After listening to two classes, I complained that the young teachers could not speak clearly, but I was speechless at lab1 .. I admit that ICS is not doing well enough, but it seems that ICS is doing well. @ back to the beginning, let's record the environment configuration process. Ubuntu was still on the hard disk last semester, because the boot file is lost due to Windows Reinstallation, it is completely hidden. How can I export grub the other day? So I simply reinstall the Ubunt of the new oxygen

I have been busy for two days and finally made a major breakthrough tonight ~

The OS was hard to understand. After listening to two classes, I complained that the young teachers could not speak clearly, but I was speechless at lab1 .. I admit that ICS is not doing well enough, but it seems that ICS is doing well @@

Let's get down to the point. Record the environment configuration process.

Ubuntu is still on the hard disk last semester. The boot file is lost due to Windows Reinstallation, so it is completely hidden. How can I export grub a few days ago, so I simply re-installed the Chinese custom version of Ubuntu 9.04 with the new oxygen, and the installation and use were smooth. However, the BT lab of OS requires GCC3.4, while Ubuntu almost all comes with GCC4 and above... I really don't want to use a virtual machine to install such an old thing as Fedora 2, and the screen is too small. Bochs needs an old version. The official version 2.41 has been released, and we need to use 2. 26...

First, find the new GCC, and find that GCC3.4 can be installed. First, choose it, And then GCC4 tries to uninstall it. Instead, the 2G program should be uninstalled together--Give up. I gradually remembered that GCC3.4 could be forced to be called. google seems to be able to give priority to the compiler by modifying the path. However, the online method is too complicated and many of them have not been explained in detail. Finally, from Kang Ge asked the simplest way to modify the link, the GCC link under usr/bin/is changed to the corresponding GCC3.4, ln-s GCC-3.4 GCC, check with GCC-v and call 3.4 successfully ~

Then compile Bochs. If the screen is full, the warning will not be mentioned, and the end will end with an error. It is easy to solve the xinterface Errors First. Add the graphical interface apt-get install xorg-dev. The following error is troublesome:

Symbols. cc: 143: Error: iso c ++ does not allow the declaration of non-type 'hash _ map'
Symbols. cc: 143: Error: expected '; 'before' <'token
Symbols. cc: 151: Error: expected constructor, destructor, or type conversion before '<'token
Symbols. cc: In constructor 'Context _ t: context_t (Bit32u )':
Symbols. cc: 158: Error: 'map' has not been declared in this scope
Symbols. cc: In static member function 'static context_t * context_t: get_context (Bit32u )':
Symbols. cc: 180: Error: 'map' has not been declared in this scope
Make [1]: *** [symbols. o] Error 1
Make [1]: Leaving directory '/home/baichaogang/Down/Bochs-2.3.7/bx_debug'
Make: *** [bx_debug/libdebug. a] Error 2

Continue to google, and finally find the solution provided by the forum. Ubuntu forum experts. After configure + a bunch of commands, we need to modify two files. For details about the modification, refer to htthttp: // www.linuxidc.com/Linux/2009-08/21485p2.htm. After testing 9.04, You need to modify these two files, but 8.04 does not.
So far, the Bochs environment compilation has been completed, and T.T has taken a lot of detours!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.