You haven’t given us a lot to go on here. You’re trying to analyze C++ code, right? What version of SonarQube are you using? And are you in SonarQube Server or SonarQube Community Build? C++ is only supported in SonarQube Server (and SonarQube Cloud.)
Can you share your analysis log?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.