Eclipse - Create a new C++ project (新建 C++ 工程)

1. Eclipse IDE Launcher

Select a directory as workspace -> Launch
Workspace: /home/foreverstrong/eclipse-work

在这里插入图片描述

2. Welcome to the Eclipse IDE for C/C++ Developers

Create a new C++ project -> Next
Create a new Eclipse project for C++ source code

在这里插入图片描述

3. C++ Project

Select Configurations -> Next

3.1. Empty Project + Linux GCC

在这里插入图片描述

3.2. Hello World C++ Project + Linux GCC

在这里插入图片描述

//============================================================================
// Name        : hello_world.cpp
// Author      : Yongqiang Cheng
// Version     : Version 1.0.0
// Copyright   : Copyright (c) 2019 Yongqiang Cheng
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main()
{
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}

17:43:15 **** Build of configuration Debug for project hello_world ****
make all 
Building file: ../src/hello_world.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/hello_world.d" -MT"src/hello_world.o" -o "src/hello_world.o" "../src/hello_world.cpp"
Finished building: ../src/hello_world.cpp
 
Building target: hello_world
Invoking: GCC C++ Linker
g++  -o "hello_world"  ./src/hello_world.o   
Finished building target: hello_world
 

17:43:16 Build Finished (took 614ms)

4. C++ Project

Debug / Release

在这里插入图片描述

5. webcam_NCS

在这里插入图片描述

6. webcam_NCS -> Import

在这里插入图片描述

7. General -> File System

在这里插入图片描述

8. General -> File System

在这里插入图片描述

在这里插入图片描述

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值