Try   HackMD

msys2安裝

  1. 前往 msys2並下載(籃框框框起來那個)window7或以前無法安裝

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  2. 東西不要亂動,按下一步就對了,尤其到這一步不要改路徑 除非你能背起來

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  3. 一樣不要亂動,下一步,下一步然後安裝

  4. Run Msys2 now勾好,雖然本來就是勾好的

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  5. 打上下面這段後按Enter(用於安裝編譯器)pacman -S mingw-w64-ucrt-x86_64-gcc
    會出現下面這個畫面,然後就輸入Y並按Enter,代表確認安裝

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  6. 出現以下畫面代表安裝完成,但仍須設定環境

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  7. 利用下方搜尋開啟環境變數

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

    點開編輯系統環境變數
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  8. 前往環境變數(有藍色框框的那個按下去)

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  9. 選取系統變數中的Path然後按下編輯(也是有藍色框框的)

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  10. 新增然後貼上這段路徑C:\msys64\ucrt64\bin
    如果有如果有變更路徑: 去資料夾找 你改的路徑+\ucrt64\bin

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →


確認是否安裝成功

  1. 關掉重開你的vscode
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  2. 按下Ctrl~(~在鍵盤左上角)開啟終端機
  3. 貼上這串指令g++ --version,這代表查看g++版本,也就是察看編譯器版本,如果找的到版本,那就代表有安裝並且設定好

如果終端機顯示如下,就代表安裝編譯器的部分完成了,記得再去看延伸模組安裝

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


學弟加電研,學妹加北資