美文网首页
mac 下c环境搭建

mac 下c环境搭建

作者: one_8274 | 来源:发表于2021-02-09 22:09 被阅读0次

    参考视频 (需要梯子)

    [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
    • 解决:开启Vscode中的autosave就可以了

    相关文章

      网友评论

          本文标题:mac 下c环境搭建

          本文链接:https://www.haomeiwen.com/subject/joacxltx.html