mac 下c环境搭建

2021-02-09  本文已影响0人  one_8274

参考视频 (需要梯子)

[1]How to Run C++ in Visual Studio Code on Mac OS 2020
[2]Debugging C/C++ with Visual Studio Code

How to Run C++ In VScode

  1. 下载homebrew
    国内下载homebrew的方法
  2. 下载MinGW
    打开terminal->输入brew install mingw-w64
  3. 下载VScode
    Vscode下载链接
  4. 在VScode下载扩展
    打开VScode (安装code runner,c++,clang++)
    image
    image

刚开始编译可能出现的问题 (后续可能添加)

没有保存就开始编译

如果没有保存就编译的话,编译时会出现

image
上一篇下一篇

猜你喜欢

热点阅读