Reply to topic

header is not guarded against multiple inclusion

Registered Member
Hi all,

I have been using kdevelop for a decade at least and I never got real big problems, I normally use for C development and sometimes also for python.
My prefererred distribution is opensuse, up to opensuse leap 15.0 all was fine, using kdevelop 5.1.2 with no external clang.
When I switched to opensuse leap 15.1, I found kdevelop 5.3.2 with clang7 and I started seeing strange problem notifies on not recognized symbols and I discovered that all was coming from some .h files not parsed at all, with just a message related to the first row of the file reporting "header is not guarded against multiple inclusion".
With this kind of problems kdevelop became unusable.

After that I installed opensuse tumbleweed and with this distribution kdevelop works fine as before, kdevelop 5.4.3 with clang8.

I tried debian bullseye with kdevelop 5.4.1 with clang7 and I found the same problems.

So I guess that the problem is related to how kdevelop works with clang, it works fine with clang8 and with some problems with clang7.

I didn't find any customization that could solve this situation.

Any suggestions would be appreciated.

Reply to topic


Who is online

Registered users: Baidu [Spider], Bing [Bot], boblundgren, boospy007, claydoh, fayl, Google [Bot], Hokasito, kde-camillem, Majestic-12 [Bot], rblackwell, Yahoo [Bot]