Using the Eclipse Platform for C + + development

Source: Internet
Author: User

We will outline how to use the Eclipse platform in a C + + development project. Although Eclipse is primarily a Java development environment, its architecture ensures support for other programming languages. In this article, you will learn how to use the C + + development toolbox (c/s + + Development TOOLKIT,CDT), which is the best C/C + + toolbox available for Eclipse.

The C and C + + languages are the most popular and most widely used programming languages in the world, so it is not surprising that the Eclipse platform (Eclipse Platform) provides support for C + + development. Because the Eclipse platform is just a framework for developer tools, it does not directly support C + +; it uses external plug-ins to provide support. This article will show you how to use cdt-for a set of plug-ins that are used by the C + + development. The CDT project is dedicated to providing a fully functional C + + integrated development environment (integrated Development environment,ide) for the Eclipse platform. While the project focuses on Linux, it works in all environments that can use GNU developer tools, including Win32 (Win 95/98/me/nt/2000/xp), the QNX neutrino, and the Solaris platform.

The CDT is an open source project that is fully implemented in Java (licensed under Common public License) as a set of plug-ins for the Eclipse SDK platform. These plug-ins add C + + perspective to the Eclipse Workbench (Workbench), which can now support C + + development with many views and wizards, as well as advanced editing and debugging support.

Because of its complexity, the CDT is divided into several components, all in the form of standalone plug-ins. Each component operates as an autonomous project with its own set of submitter, error categories, and mailing lists. However, all plug-ins are required for the CDT to work properly. The following is a complete list of CDT plug-ins/components:

The main CDT plug-in (Primary CDT plug-in) is the "framework" CDT plug-in.

The CDT feature Eclipse (CDT Feature Eclipse) is the CDT functional component (Feature Component).

The CDT core (CDT cores) provides the core model, the CDOM, and the core components (cores Component).

The CDT UI is the core UI, views, editors, and wizards.

The CDT boot (CDT Launch) provides a startup mechanism for external tools such as compilers and debuggers.

The CDT debug core (CDT debug cores) provides debugging capabilities.

The CDT Debug UI (CDT Debug UI) provides a user interface for the CDT debug Editor, Views, and wizards.

CDT Debug mi (CDT debug mi) is an Application Connector for the MI-compliant debugger.

Now, let's look at how to use these components in a real-world application. Figure 1 shows the C + + project in Eclipse:

Figure 1. Edit a C + + project in Eclipse with the CDT plug-in

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.