In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure the project header file path in VSCode". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to configure the project header file path in VSCode.
To Coding with VSCode, the editor needs to configure the header file path by itself, that is, automatically establish a c_cpp_properties.json file to manage the header file path, and then manually add which libraries you need. The method is very simple, as follows:
1. Generate c_cpp_properties.json file
Press "F1" to start the instruction input box, enter Cmax Cleavage, and select the first item Edit Configuration:
A Json file is then automatically generated:
two。 Add header file path
We only need to add the required header file path to the IncludePath in the red box, such as my project:
As prompted here, the common installation locations for the header files of common libraries are as follows:
/ usr/include//usr/local/include
So these two basic things to add, if you don't know where the header file of the library you installed is, but you know the key header file name, you can use the locate command to find it:
Locate ros.h | grep include
This command means to find the location of all ros.h and find the path with the include field in the path:
Thank you for your reading, the above is the content of "how to configure the project header file path for VSCode". After the study of this article, I believe you have a deeper understanding of how to configure the project header file path for VSCode, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.