-
The file contains a function called "main"
-
Use the CMD to compile code "g++ name.cpp -o exeName"
-
Use the CMD to run code "./exeName"
g++ async.cpp -o async -std=c++11 -pthread
- Click the "Menu column -> Tool -> CMake -> Unload CMake project" to detach the current CMake target (unbind the default target) .
- Click your target CMakeLists file and then run "Menu column -> Tool -> CMake -> Reload CMake project"
- type the following commands in the terminal (in the folder of each project)
mkdir build
cd build
cmake ..
make