Preliminary Study: eclipse3.6 C/C ++ Program Development

Source: Internet
Author: User
Combined with some network logs on the network, the first eclipse C Program : Helloworld! For ease of entry, you are advised to download the Integrated Development version of eclipse for C ++ directly on the eclipse official website. (Of course, if you already have eclipse, you can also use plug-ins to insert CDT into eclipse. In my opinion, there are too many functions in eclipse, that is, to develop Java and to develop C ++, the startup or running speed will inevitably slow down .) The first statement is in windows. Of course, it is quite good to use eclipse to develop C ++ in Linux. There are two steps in total: 1. Download http://www.eclipse.org/downloads/, download: After the download is complete, unzip, you can directly run. Only the C ++ compiling function is provided here. 2. with the above software, CDT is only a C/C ++ development toolings, a development tool, and has not integrated the C ++ Editor, debugger, and so on, so also another installation of course after a lot of can choose, here use mingw download mingw: http://www.800disk.com/xiazai/down_388199.aspx in the choice of installation components, you do not have to select Java ADP components, the rest of the installation. The software has been installed. The next step is to configure the environment. 1. in the system environment variable configuration: configure the bin path of mingw to path and enter it in the Windows command line. GCC shows that GCC no input files indicates that the installation is successful. integrate the Editor Environment in eclipse for C. 3. At this time, all the environments have been set up and you can write programs. Compile the helloworld program: 1. Create a project 2. Create a C source program 3. Compile the source program first before running it 4. Run the program and you can see the output on the console. So far, the first C program has been developed, but so far it cannot be debugged. Because the gdb component is not available in mingw5.1.6, You have to download the gdb component to debug the program, then add it to mingw. You can search for it online.

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.