Linux C + + compiler Code::Blocks Installation

Source: Internet
Author: User
Tags wxwidgets linux

Recently want to write C, C + + aspects of the program, so I would like to find a Linux editor to use, looking for a lot also tried a lot, and finally locked the codeblocks. The following is an introduction to him and some installation procedures. Apply to all Linux bar. (Sometimes it just takes a train of thought, all the others are almost the same)

(excerpt) Code::Blocks, sometimes also simply called "Codeblocks", is a new C + + Integrated settings environment Software (IDE).

As a C + + Ide,code::blocks at least the following points are very attractive to me.

Open Source--open source doesn't just mean free, but it's just that it's free, it's very important, isn't it?

Cross-platform-I need to write the C + + program, on the request is across the Linux and Windows platform, without the choice of code::blocks, I use KDevelop under Linux, in Windows using Borland or Microsoft software, There are too many things to do because they are incompatible. You may not consider cross-platform for the time being, but for the future, Cross-platform is not a bad thing, Code::Blocks also support the MAC system.

As a C/C + + programmer, I stubbornly retain a bit of self-esteem that may not be necessary: Write a C + + program, or an IDE written in C + +. Let me choose an IDE written in other languages to write C + + programs, I have a little completely unnecessary psychological obstacles. In fact, using the c+ + Write program The biggest advantage is that you do not have to install an additional large operating environment, such as you do not have to wear. NET also does not install Java.

Support for multiple compilers-including Borland C + +, VC + +, Inter C + +, and more than 20 different production or version compiler support. No specific requirements, I still mainly use g++, the debugger is also supporting a variety of.

Plug-in framework-Plug-in integrated development environment, the most famous is the Java programming tool eclipse, this way to keep an IDE good scalability, it should be said, as an open source IDE, this is the most reasonable choice. Code::Blocks Many of the core features, including debugging features, are implemented through Plug-ins. Non-core aspects of plug-ins, I use the most, is the code format beautification, automatic Google codes search ... Occasionally also play "Tetris" and "Greedy snake" ...

Frequent updates-updates are available almost every month. Open source software is afraid of the most is not updated.

embedded visual design--and everyone familiar with VB, Delphi/c++builder compared to its visual window designer, its "fool" is a big cut, the main reason in the mainstream Cross-platform graphics window Positioning System, are used to locate the "container" to achieve, this point at first will not be very accustomed to, But after familiar with, design various dialog boxes, also very intuitive. A little less intuitive, in exchange for your program is easy to migrate to other operating systems, but also allows you to the window design more in-depth, but also value.

C + + Extension library Support-through a plug-in that supports Dev C + +, you can download a large number of open source extensions for C + +. such as network operations, graphics algorithms, compression, encryption and so on ... The most common one I use now is Iconv, which is used to convert encoding. Extension library download, and the use of methods, please see the relevant courses in this site.

Multi-national language-haha, there are Chinese version, support nearly 40 languages, but not the default support, the site of the relevant language pack part of the revision and improvement, language package file download and use of the method to see the relevant courses in this site.

Everyone's choice-by the way, code::blocks into the "Sourceforge Community Choice Award" 2008 Finals. "Sourceforge" is the world's largest open source community, that this tournament, can be called "Community Best Choice Award", ultimately can not win the prize, but did have to vote. Can have a lot of users selfless support to enter the final, which is naturally also we choose a reference. The following installation reference "Http://www.boobooke.com/bbs/viewthread.php?" Tid=5637&extra=page%3d2 "But there's a little bit of a problem in his document, and there's no link."

Installation process:

Installation Environment: OpenSUSE 11.1

Because the Codeblocks is developed based on wxwidgets, you need to first install the wxwidgets before you can install Codeblocks.

If you can find WXGTK Wxgtk-devel in your package management tool, you will install the package directly, using the same installation without the source package. Oh, can find codeblocks better, as if not generally.

1, WXGTK

Download WXGTK in http://www.wxwidgets.org/downloads/

wget http://nchc.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.8.10.tar.gz

Tar xzf wxgtk-2.8.10.tar.gz

CD wxGTK-2.8.10

./configure–prefix=/usr–enable-xrc–enable-monolithic–enable-unicode

Make

Make install

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.