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

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

1. Eclipse IDE Launcher

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

Eclipse - Create a new C++ project (新建 C++ 工程)_第1张图片

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

Eclipse - Create a new C++ project (新建 C++ 工程)_第2张图片

3.2 Hello World C++ Project + Linux GCC

Eclipse - Create a new C++ project (新建 C++ 工程)_第3张图片

//============================================================================
// 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 
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

Eclipse - Create a new C++ project (新建 C++ 工程)_第4张图片

5. webcam_NCS

Eclipse - Create a new C++ project (新建 C++ 工程)_第5张图片

6. webcam_NCS -> Import

Eclipse - Create a new C++ project (新建 C++ 工程)_第6张图片

7. General -> File System

Eclipse - Create a new C++ project (新建 C++ 工程)_第7张图片

8. General -> File System

Eclipse - Create a new C++ project (新建 C++ 工程)_第8张图片

Eclipse - Create a new C++ project (新建 C++ 工程)_第9张图片

你可能感兴趣的:(Eclipse,IDE,C++)