Build a Linux programming environment (codeblocks)

Source: Internet
Author: User

I. Preface:

The graduation project should be programmed in Linux in C or C ++ language. In the early stage, considering that the interface may be required, I was planning to use C ++, however, later I found that C is not as simple and convenient as C, so I prefer C.

Ii. compiler Selection

Originally, I wanted to use eclipse + CDT, but it was a pity that it was too busy. eclipse was too big, and the company's network was down. APT-Get installation was also very difficult, you also need to install the evil JRE...

I searched the internet and found a lightweight IDE, codeblocks, which is also an open-source cross-platform. Its functions are quite complete and only a dozen MB of data is written in C ++ and supports plug-ins. Alas, good! You have decided to use it.

Iii. Installation

I am too lazy to download and install it manually, so as not to be killed by the poor network. Sudo apt-Get install codeblocks.

After the codeblocks command is installed on the terminal, it can be opened. It is a little slow when it is started. You need to detect various things and you can bear it.

Iv. Test

Create a new C Project and add a c file. Step by step. That's a little tedious.

When adding a c file, note that belongs in target must at least select one item: Debug or release. Otherwise, the build will always fail.

You need to manually rebuild the file after each modification. If you run the file directly, the last generated file is run...

V. Summary

Eclipse is not powerful, but it comes with GCC and so on. files can be directly built and run, saving the trouble of setting. So it is usually used as a smallProgramOr something is good.

IDE is full of clouds, and programming is king.

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.