Eclipse CDT生成的Makefile在哪里?
我已经使用 Eclipse(helios) CDT 构建了一个 hello world C++ 项目。它编译得很好。但我想看一下生成的 Makefile CDT。我在项目文件夹/调试/发布文件夹或 src 文件夹中找不到它。我在哪里可以找到这个 Makefile?
I've built a hello world C++ project with Eclipse(helios) CDT. It compiled fine. But I would like to take a look at the Makefile CDT generated. I can't find it in project folder/debug/release folders or in the src folders. Where can I find this Makefile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 Windows 上,
单击您的项目,转到菜单
project
->properties
,选择Tool Chain Editor
,然后在Current Builder
中选择Gnu Make Builder
。现在构建一个目标并生成 makefile。
http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.cdt。 doc.user%2Freference%2Fcdt_u_prop_build_toolchain.htm
On Windows,
Click your project, go to menu
project
->properties
, selectTool Chain Editor
then select inCurrent Builder
Gnu Make Builder
.Build a target now generate makefile.
http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop_build_toolchain.htm
如果您使用
当前构建器 = CDT 内部构建器
的默认设置,则没有 make 文件。如果您选择
current builder = GNU make
,您将在调试文件夹中看到makefile。If you use the default setttings with
current builder = CDT internal builder
, there is no make file.if you select
current builder = GNU make
, you will see the makefile in the debug folder.我唯一能想到的是 makefile 没有创建。单击您的项目,进入菜单
project
->properties
,在左侧窗格中选择C/C++ Build
,并确保选中自动生成 Makefiles
复选框。The only thing I can think of is that the makefile isn't created. Click your project, go to menu
project
->properties
, selectC/C++ Build
in the left pane, and make sure theGenerate Makefiles automatically
checkbox is checked.默认情况下,您应该有[工作空间]/[项目文件夹]/Debug/makefile。您对默认环境进行过任何更改吗?
以下是来自 Helios (windows/cygwin) 安装的 HelloWorld 示例项目 makefile:
By default you should have [workspace]/[project folder]/Debug/makefile. Have you made any changes to the default environment?
Here's the HelloWorld sample project makefile from a Helios (windows/cygwin) installation: