天天看點

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

),怎麼辦?

背景

今天在使用codeblocks時,出現了一個問題,也許是我太長時間沒用了,如圖所示:

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

解決方案

那麼我們就根據它的提示檢查一下compiler(編譯器),

1.首先我們按照圖示打開菜單欄中的編譯器設定

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

2.我們在打開的視窗中點選這一項

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

3.看到這個路徑。我說怎麼找不到編譯器呢,原來是路徑不對。對比一下本地檔案夾就會發現這麼長時間我的路徑已經變了而codeblocks裡寫的還是原先的路徑

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler
codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

4.改過來就好啦

codeblocks找不到編譯器,怎麼辦?codeblocks找不到編譯器(Can’t find compiler executable in your configured search path’s for GNU GCC Compiler

結束語

說到底就是自己不知道什麼時候改了本地檔案夾的路徑了,在codeblocks裡改一下就好。

繼續閱讀