eclipse c / c ++ CDT只构建一个文件 [英] eclipse c/c++ CDT build just one file

查看:118
本文介绍了eclipse c / c ++ CDT只构建一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用eclipse CDT做一个C ++项目,但是需要大量的时间来构建所有的源文件。



我宁愿只建一个源代码文件,我正在使用,直到它是正确的,后来进入下一个源文件。但是我看到的所有eclipse选项(Make project and Build all)可以处理项目的所有源文件。



有没有什么简单的方法来构建eclipse CDT中的一个或两个源文件?



谢谢!

解决方案

这比预期容易得多


  1. 取消选择项目 - >自动构建

  2. 右键单击您要建立的文件

  3. 点击构建所选文件

资料来源: http://www.cesareriva.com / single-file-compile-in-eclipse-cdt /


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 until it's correct and later go ahead to the next source file. But all the options I have seen of eclipse (Make project and Build all), work over all the source files of the project.

Is there any easy way to build just one or two source files in eclipse CDT?

Thank you!

解决方案

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/

这篇关于eclipse c / c ++ CDT只构建一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆