Install code: blocks in Ubuntu

Source: Internet
Author: User
Tags valgrind wxwidgets

Installation steps:
1. First install the compiling environment, C library, C ++ library, and boost Library, As follows:

Sudo apt-Get install libc6 libc6-dbg libc6-dev glibc-Doc libstdc ++ 6 libstdc ++ 6-4.2-dbg libstdc ++ 6-4.2-dev libstdc ++ 6-4.2-doc libboost *

Note: run the following command to replace the old library above.

Sudo apt-Get install build-essential

2. The latest code: blocks contains a debugging component valgrind, which is used to detect memory leakage.:

Sudo apt-Get install valgrind

3. Install GDB:

 
Sudo apt-Get install GDB

4. Add a software update source

Sudo CP/etc/APT/sources. LIST/etc/APT/sources. List. Bak
Sudo gedit/etc/APT/sources. List



# Add the following update addresses
DebHttp://apt.tt-solutions.com/ubuntu/

Edgy main

DebHttp://apt.tt-solutions.com/ubuntu/

Feisty main

Sudo apt-Get update
Sudo apt-Get dist-Upgrade

Save the disk and exit gedit.

5. Install the Public Key:
Wget-Q http://apt.wxwidgets.org/key.asc-o-| sudo apt-key add-
Wget-Q http://lgp203.free.fr/public.key-o-| sudo apt-key add-

Add key from tt-solutions.com
Wget http://www.tt-solutions.com/vz/key.asc
Sudo apt-key add key. ASC

6. Installation code: blocks latest version and wxWidgets(Note: Check the latest version on www.wxwidgets.org before installation)

Sudo apt-Get install Plugin-0 libwxbase2.8-dbg libwxbase2.8-dev Plugin-0 Plugin-dbg Plugin-dev wx2.8-Doc wx2.8-examples wx2.8-headers wx2.8-i18n WX-common

Sudo apt-Get install codeblocks-contrib libcodeblocks0 libwxsmithlib0

 
Start using code: blocks, ApplicationProgram-> Programming-> code: blocks IDE.

Code: blocks and wxWidgets are well integrated and almost no additional configuration is required.

 

Reprinted from: http://yangzb.iteye.com/blog/594022

Some settings are not added because they are not used.

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.