msys2安裝
-
前往 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 →
-
東西不要亂動,按下一步就對了,尤其到這一步不要改路徑 除非你能背起來
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 →
-
一樣不要亂動,下一步,下一步然後安裝
-
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 →
-
打上下面這段後按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 →
-
出現以下畫面代表安裝完成,但仍須設定環境
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 →
點開編輯系統環境變數
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 →
-
選取系統變數
中的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 →
-
按新增
然後貼上這段路徑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 →
確認是否安裝成功
- 關掉重開你的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 →
- 按下
Ctrl
和~
(~
在鍵盤左上角)開啟終端機
- 貼上這串指令
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 →
學弟加電研,學妹加北資