# C and C++ Configuration issues

**URL:** <https://community.sonarsource.com/t/c-and-c-configuration-issues/60294>\
**Category:** SonarQube Server / Community Build\
**Tags:** cfamily\
**Created:** [March 22, 2022, 3:00am UTC](https://community.sonarsource.com/t/c-and-c-configuration-issues/60294 "2022-03-22T03:00:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielmp](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@danielmp](https://community.sonarsource.com/u/danielmp)\
**Post date:** [March 22, 2022, 3:00am UTC](https://community.sonarsource.com/t/c-and-c-configuration-issues/60294/1 "2022-03-22T03:00:33Z")

</div>

Hi I am trying to configure SonarQube for analysis on some C/C++ applications and all of them are failing to scan.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/5/e/5e8a724953352b72b9b41531be44dfc3826f43d0.png)

SonarQube Version: 8.9.7.52159  
build-wrapper, version 6.20.3 (win-x86-64)  
SonarScanner 4.6.0.2311

Here is my build-wrapper output and sonar-project file in the zip below. As you can see from the dump.json there are plenty of files to scan.

[configuration.zip](https://community.sonarsource.com/uploads/short-url/5BgeWhqFqYeJEHJ9kAoKV633ZkO.zip) (98.0 KB)

So far, I have found out that removing /Tc or /Tp from the cl.exe command line arguments in the dump.json will allow it to run but it does not give a proper analysis (no issues found)

So I am wondering if this fix ([[CPP-3096] Add support for MSVC /Tc, /Tp, /TC and /TP options (to force C or C++ language) - SonarSource](https://jira.sonarsource.com/browse/CPP-3096)) is in my version of SonarQube or if I am doing something wrong in my setup?

---

<div class="post-metadata">

**Author:** ![danielmp](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@danielmp](https://community.sonarsource.com/u/danielmp)\
**Post date:** [March 22, 2022, 8:17am UTC](https://community.sonarsource.com/t/c-and-c-configuration-issues/60294/2 "2022-03-22T08:17:37Z")

</div>

> [@SonarScanner failed to analyze C files](https://community.sonarsource.com/t/sonarscanner-failed-to-analyze-c-files/40834/5):
>
> After investigation, it turns out the problem comes from the fact that the CFamily plugin does not support absolute paths in cygwin style for include directories and compilation units. Here is the ticket to fix that problem: [CPP-3044](https://jira.sonarsource.com/browse/CPP-3044). A workaround is to write the include directories and compilation unit paths either with a relative path or with a windows style path.

I found my solution here.

This is the issue: [Jira](https://jira.sonarsource.com/browse/CPP-3044)

Issue is the pathing in the Cygwin environment, I needed to alter the dump.json file to follow the windows pathing.

Any timeframe for CPP-3044 to be resolved?

---

<div class="post-metadata">

**Author:** ![danielmp](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@danielmp](https://community.sonarsource.com/u/danielmp)\
**Post date:** [March 22, 2022, 9:28am UTC](https://community.sonarsource.com/t/c-and-c-configuration-issues/60294/3 "2022-03-22T09:28:01Z")

</div>

Also wanted to asked where can I get build-wrapper 6.21, currently my SonarQube 8.9.7LTS will only give me the 6.20.3 version
