Linux C + + development tools Codeblocks Installation Technology Program __ Storage

Source: Internet
Author: User
Tags bz2 gtk wxwidgets
Linux C + + development tools Codeblocks installation Technology Solution

Linux C + + development and compilation is generally the use of Vim direct text editing, using GDB for debugging, g++ to compile. This set of technical solutions is feasible, and the most common, but the problem is that vim write code is not as convenient as the general IDE, and need to use a lot of commands, GDB debugging also need to use many commands, and cumbersome operation, so a similar eclipse of the powerful IDE is expected.

After searching and comparing, finally found a cross-platform, powerful, and operation similar to Eclipse tools, can be directly connected to the Linux system for C + + development and debugging, This article is mainly around how to install Codeblocks under Linux and how to run Linux on Windows Codeblocks, after the installation of this document, you can develop a common local C + + program like the development of Linux under the C + + program.

Linux installation programs generally use the Yum command, so before you start to ensure that the system installed the Yum program.

1. Install GCC, gcc-c++

If the dependencies of the installation are installed through the source code, then GCC, gcc-c++ is necessary, in fact, these two compilers are to be installed anyway, they are the best Linux/C + + compiler.

2. Install GTK +, Gtk2-devel

Pass

Yum Install GTK +

Yum Install Gtk2-devel

can be installed.

3. Install wxwidgets

This may be the most troublesome because of the need to solve a lot of dependencies.

Download wxwidgets-3.0.2.tar.bz2

(http://www.wxwidgets.org/downloads/)

Decompression Tar-jxv-f wxwidgets-3.0.2.tar.bz2

Enter the unpacked directory (CD wxWidgets-3.0.2)

Perform

./configure

Make

Make install

The installation process is very long, after installing Wx-config--libs, the result is-lwx_gtk2u-2.8, the installation is successful

4. Install Codeblocks

Download codeblocks_13.12-1.tar.gz

(http://www.codeblocks.org/downloads)

Decompression TAR-ZXVF codeblocks_13.12-1.tar.gz

Cp/usr/local/share/aclocal/wxwin.m4/usr/share/aclocal/wxwin.m4

Into the unpacked Directory Execution (CD codeblocks_13.12-1)

./configure

Make

Make install

5, download Xshell tools and Xmanager Tools

To configure a remote connection for Linux in Xshell, the tunnel that configures the connection properties is as follows:


6. After configuration, start codeblocks under Linux

Starts Xmanager under windows and then starts Codeblocks


Then create a new project, add project files, headers and CPP files, specify makefile files, or system compilation, and finally you can step through debugging, view variable jump, and so on a series of IDE features can be implemented, and finally help you on the Windows Happy development of Linux under the C + + program.


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.