Skip to content

how to ignore include path for /usr/include/linux #11442

Answered by bobbrow
yzr95924 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm a bit surprised since I thought the path that was interfering was /usr/include which comes from your compiler's system include path that is added after the includePath you've specified. I'm wondering if your local version of <linux/module.h> has an #include_next in it?

The observation you've made above is correct though. If you want a certain path to take precedence over the recursive search in your workspace folder (${workspaceFolder}/**), you add it at the beginning of the includePath.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@bobbrow
Comment options

@yzr95924
Comment options

@bobbrow
Comment options

Answer selected by yzr95924
Comment options

You must be logged in to vote
1 reply
@yzr95924
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants