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