Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install C++ plug-in CDT under Eclipse

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to install C++ plug-in CDT under Eclipse, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

According to the official website of eclipse, download the following:

1.eclipse (http://www.eclipse.org/downloads/index.php), I play is 3.0, but also have a higher version, if you want to have Chinese help, you can download version 2.1.2, I am to put both down, in 2.1.2 to see help, in 3.0 to use.

two。 Download cdt 2.0.2 (http://download.eclipse.org/tools/cdt/releases/new/), there are also many versions of cdt, note that the download matches your eclipse, cdt 2.0.2, which supports eclipse 3.0, is not very mature, so it is not directly given on the CDT main version download page, you can download it from the URL I gave.

3. Download minGW, what is this thing you go to the Internet to find out, anyway, there must be. But it is difficult to find online (the official website can not be connected), I good people do it to the end, on and off my server: http://2peak.bluesaga.com/other/minGW.exe, and then install. You can download * * http://sourceforge.net/project/showfiles.php?group_id=2435 from here.

4. Suppose your minGW is installed in the c:\ mingw directory, set PATH=c:\ mingw\ bin; in the environment variables first to prevent conflicts with make commands such as VC/.NET, and change the XXX-make.EXE in the c:\ mingw\ bin directory to make.exe. Then in CMD, execute make.exe, if it is "* No targets specified and no makefile found. Stop." That's right.

5. Install eclipse, extract it, and you don't need any installer (it's really green).

6. Extract the cdt, there are two folders: features and plusins, copy the contents of the folder to the corresponding directory of eclipse.

7. Start eclipse now, and then see if there is a project wizard in file- > new- > project. If so, congratulations! If not, don't worry, because you met me.

8. In help- > software updates- > find and install... Select search for new features to install, then click the new remote site button, add the following address: http://update.eclipse.org/tools/cdt/releases/new, then select it, eclipse will go to this address to find a new cdt, wait a moment, list the version of cdt, select * *, and then next all the way, it will start downloading and installing from the Internet, and it will be prompted to restart eclipse after installation.

9. Done, see the c, C++ project guide in the picture!

Now test your compiler and make programs to see if they work properly. Create a new managed make C++ project (automatically generate makefile), and then create a new class file, or use the helloworld example. My document is as follows:

-myclass.h-#ifndef MYCLASS_H#define MYCLASS_H

10. Save the program, at this time automatically compile the program, if there is no error will automatically generate an exe program in debug.

11. Then click the run button on the toolbar, as shown in the figure, to create a new running configuration for the project.

twelve。 The running results are displayed in the console window, as shown in the figure.

The above is all the contents of this article entitled "how to install C++ plug-in CDT under Eclipse". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report