In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of vscode to build C language development environment, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
Install the cripple + extension
Install the compilation environment mingw-w64
Download address: http://www.mingw-w64.org/doku.php/download
Configure environment variables. Take WIN10 as an example, this computer-Properties-Advanced system Settings-Environment variables-system variables-path- add an E:\ mingw-w64\ mingw32\ bin\ (the address of the compiled environment you installed)
After cmd configuration:
Configure vscode
1) after opening the folder, create a new hello.c for testing:
2) press F5 to debug, the following logo appears, and select
3) Select launch.json and generate a startup configuration file for launch.json in the working directory: and modify the corresponding file
The following figure is revised:
4) when you go back to hello.c and press F5 to debug, you need to select a configuration task.
5) configure c_cpp_properties.json
5. Other
Once and for all: because VS needs to be configured separately for each folder, it is recommended that you put the .vscode folder on top of your commonly used folder so that you don't have to repeat the configuration. You don't need a set of configurations for each new cpp file. These configurations can be used in all subfolders and files within the folder you have configured.
Note: there are Chinese in the printf statement, the garbled code is displayed when debugging, you can do the following operations.
Thank you for reading this article carefully. I hope the article "vscode how to build a C language development environment" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.