MAC與LINUX g++編譯器安裝
這種UNIX的系統就是讚啦,比甚麼windows的好多了
裝編譯器是為了讓你的電腦能夠執行c++
至於實際在vscode使用編譯器則會在另一篇教學中提到
LINUX
你會用linux應該不用我教你怎麼裝了吧
打開終端機輸入這個
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 →
MAC
先在電腦中裝上homebrew aka 套件管理程式
以後下載東西都會變很方便
在終端機輸入:
照他說的做並等他跑完後
終端機輸入
這邊裝的gcc就是編譯器la
最後輸入
先where g++
找到g++的位置
這邊的目的是為了讓裝的編譯器名字從少用的gcc-13轉回常見到的g++,在使用其他地方的預設參數時較不容易報錯
要在vscode用的話還要繼續看這個
https://hackmd.io/@ckefgisc-cpp-summer/ext?utm_source=preview-mode&utm_medium=rec
結束la
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 →
同場加映:
可以試試看
後
在終端機輸入
喔