eclipse c/c++ CDT build just one file

前端 未结 2 708
日久生厌
日久生厌 2021-02-18 14:57

I\'m doing a C++ project with eclipse CDT but It takes a lot of time building all the source files.

I\'d prefer just build the one source file which I\'m working with un

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-18 15:35

    It was much easier than expected.

    1. Deselect Project -> Build Automatically
    2. Right click on the file you want to build
    3. Click on Build Selected File(s).

    Source: http://www.cesareriva.com/single-file-compile-in-eclipse-cdt/

提交回复
热议问题