This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Set background parser to not look in '/usr/include'?

Tags: None
(comma "," separated)
anville
Registered Member
Posts
1
Karma
0
I've been using kdevelop as my IDE for some years for doing embedded developement. We have a cross-compiler toolchain, and while I don't create a 'project' in kdevelop, I do use the '.kdev_include_paths' at the root of the project to point the IDE at the right folders for resolving symbols, etc.

One thing that always annoys me though: even though I specify the correct folders for my toolchain, the background parser will always use the '/usr/include' folder of my host machine to find standard files, such as:

#include <stdio.h>

This is actually more than an annoyance, because sometimes the this will break the parsing of the files that *are* part of the toolchain.

I try to specify the sysroot include of my toolchain with the first line of .kdev_include_paths, (/opt/dev-toolchain/sysroots/aarch64-poky-linux/usr/include) but I can't ever get the background parser to use it first. Is there any trick to set the sysroot of my toolchain, or maybe a way to blacklist the host machine native folders?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi, did you try specifying "-nostdinc -nostdinc++" in your project settings, under Language?


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]