Environment error: “CodeBloks can't find compiler executable in your configured search path's for GNU GCC compiler”


codeblock安裝后,提示cant find compiler executable in your configured search paths for GNU GCC Compiler

可能的情況有兩個:

1)安裝的是不帶編譯器的版本

2)安裝了帶編譯器的版本,但是沒有指定正確的路徑。

解決辦法:

對於第一種情況,直接在官網下載帶有編譯器的版本; 

官網鏈接:http://www.codeblocks.org/downloads/26#windows

{

或者下載MinGW-w64:http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe 下載后將../bin加到環境變量PATH中
然后打開codeblocks中的settings/compiler/ToolChain executables 將Program Files下的c compiler 等等全部設置位置到你剛下載的bin文件下對應的

}

 

對於第二種情況,需要手動的指定編譯器的路徑。

具體操作如下:

a.在Code::Blocks的菜單中點擊Settings->Compiler,如果安裝了上面的GCC請在Selected Compiler選中GNU GCC Compiler.

b.點開Toolchain executables標簽,點擊Auto-detect之前的文件瀏覽,找到codebook安裝的路徑下面的MinGW文件夾,並且保存。

c.重新打開codeblock,問題應該就已經解決了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM