vscode C/C++ environment configuration (problems after gcc)

**

C language vscode configuration environment (how to solve gcc problems)

**
1. First configure vscode c/c++ environment: download the plug-in c/c++ and Code Runner plug-inInsert image description here

2.然后简单创建一个.c文件

3.运行出现下面错误:

Insert image description here
Insert image description here
4. Reason: c environment variable is not configured
5. Solution Download MinGW package link:

https://pan.baidu.com/s/1yW818tP1x35rBWBj2gDt8g Extraction code: 1111 (provided by @小峰programming diary of station b)

6. Then add the MinGW path (such as D:\download\c\MinGW\bin) to the computer environment variables: Computer—Properties—Advanced System Settings—Environment Variables—System Variables—pathInsert image description here

****再运行 就显示成功了!!****

Guess you like

Origin blog.csdn.net/der_power/article/details/127858497