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/