Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAR system include path should be place at the end of includePath in c_cpp_properties.json #34

Open
ustbshen opened this issue Mar 11, 2020 · 0 comments

Comments

@ustbshen
Copy link

ustbshen commented Mar 11, 2020

As the IAR official development guide description:

If the compiler encounters the name of an #include file in angle brackets, such as:
#include <stdio.h>
it searches these directories for the file to include:
1 The directories specified with the -I option, in the order that they were
specified, see -I, page 282.
2 The directories specified using the C_INCLUDE environment variable, if any, see
Environment variables, page 251.
3 The automatically set up library system include directories. See --dlib_config,
page 276.

the compiler will search the header in the path that user configured in the project firstly.
If I write the header file "errno.h" in my project, I find that the vscode cannot find the correct header file in my project; instead it find the file provided in the IAR system path. so it is recommended to list the system include header at the end of includePath in c_cpp_properties.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant