The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
// Get the current projectcbProject* project = Manager::Get()->GetProjectManager()->GetActiveProject();// Get the debug build targetProjectBuildTarget* target = project ->GetBuildTarget(wxT("debug"));PluginsArray arr = Manager::Get()->GetPluginManager()->GetCompilerOffers();cbCompilerPlugin* comp;for(size_t i = 0; i < arr.size(); ++i){ comp = dynamic_cast<cbCompilerPlugin*>(arr[i]) if(comp) { // here you should check if this is the right compiler. No idea how you can do this break; }}comp->Build(target);if(comp->GetExitCode() != 0){ //compiling failed}