Use your own makefile to manage engineering in eclipse

Source: Internet
Author: User

I use the environment:

(1) System: Ubuntu 11.04

(2) Eclipse + CDT



1. Select the Makefile project when establishing the project.



2. Import the makefile file and the project files (source files and header files) you have written into the project you just created.





3. If you write the first goal in the makefile is all, you can directly compile the project, build all can be.




Build all is equivalent to performing the make all effect on the terminal, and look at the effect of my project.


Run the project run, quite in the terminal./all




If not all, choose your makefile, right---->make tagets--->create, create a target that you want to build, such as test.



Then find the target you just created and click Build. Like the test target in my makefile.




Another: Eclipse with GDB debugging time do not open optimization options, and need to add debugging information. That is, after the GCC parameters do not add 04, be sure to add-G.


Use your own makefile to manage engineering in eclipse

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.