Introduction of Installation + Chinese and basic use of codeblocks under CentOS

Source: Internet
Author: User

Codeblocks Installation

Note: Run the following command under root user

1. Install GCC, the C and C + + parts, the default installation, CentOS does not install the compiler, the terminal to enter the following command

Yum Install GCC

Yum Install gcc-c++

2. Install Gtk2-devel because the support libraries required for the official product are installed by default, but no documentation is required to install the development.

Yum Install gtk2*

3, install WXGTK, first from address http://sourceforge.net/projects/wxwindows/files/wxAll/2.8.9/wxWidgets-2.8.9.tar.gz/ Download Download WXGTK Install package, unzip, enter directory and execute command

./configure--prefix=/usr--ENABLE-XRC--enable-monolithic--enable-unicode

Make

Make install

4, install codeblocks, download Codeblocks installation package,: http://www.codeblocks.org/downloads/

Here are two ways to install:

The first way is to download the RPM package directly, can be installed directly, but the RPM installation form, there is no default installation visual design Wxsmith.

The second way is to download the source code, the suffix is. tar.gz (. tar.bz2), after downloading, unzip, enter the directory, execute the command

./configure--prefix=/usr--with-contrib-plugins=all (if just./configure the default is not to install the visual design Wssmith, If you do not need to develop the GUI, you can use the first method of installation directly)

Make

Make install

5. Install DOS window: Yum Install xterm

6. Install the debugger: Yum install gdb

Codeblocks of Chinese

Chinese-Typed package:
http://pan.baidu.com/share/link?shareid=162389&uk=503806257

Go to Folder location:

Cd/usr/share/codeblocks

New folder:

mkdir locale

Enter locale folder:

CD locale

Copy ZH_CN folder in


Cp-r/......../. ( Absolute path to the ZH_CN folder) Note: The trailing spaces cannot be omitted. File name can not be changed!!!

Restart Codeblocks, complete

Codeblocks Basic Debugging use

Press F4 to run the cursor at the specified place, and then press F7 for one-step debugging

PS: Does not seem to support printf, cout can.

Introduction of Installation + Chinese and basic use of codeblocks under CentOS

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.