如何在eclipse cdt环境下 导入一个含makefile的工程文件

本教程介绍了如何在Eclipse CDT环境中导入一个已有的包含makefile的C++项目。步骤包括:创建新项目,指定项目位置和源文件目录,选择Makefile项目类型,配置构建命令以指向自定义的makefile,以及设置运行配置来执行应用程序。
摘要由CSDN通过智能技术生成

原文

Tutorial: Importing an existing project

The following tutorial takes you though the process of importing a 'legacy' application using the CDT.

Step 1: You want to create a single project that will reflect all of the components for the existing source tree.

  1. Select File > New > Project.
  2. For this tutorial, expand C/C++ and select C++ project.


    The New Project wizard displays. Click here to see an illustration (displayed in a separate window).


  3. In the Project name field, type a name for the project.
  4. Ensure that the Use default location option is not selected because here we will specify where the resources reside in the file system, in a location other than your workspace. 
    We assume this directory location already exists, and contains e.g. source files and makefile. If it does not exist, it will be created.

    In this example, we will use an existing hello.cpp and its existing hello.mak makefile, located in the directory c:\brandon.

      Click here to see an illustration (displayed in a separate window).

  5. In the Location field, specify the path to the existing files for your project.
  6. From th
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值