This error is that the default lanch configuration is not being created for this project. To solve it, Need to do:
- Right click Project -> Run As -> Run Configurations
- Create a new configuration under C/C++ Application
- Click Browse to select the executable file, which exist in either the Debug or Release folder.
Your launch configuration should look like this:
Refere to: