CodeBlocks报错原因分析:找不到编译器 / th_en_US.idx' not found! 提示
找不到編譯器解決方法
新裝了一個(gè)CodeBlocks,無(wú)法運(yùn)行程序,報(bào)錯(cuò)如下:
Project/Target: "ACM1 - Debug":The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.Probably the toolchain path within the compiler options is not setup correctly?!Do you have a compiler installed? Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.Tried to run compiler executable 'C:\MinGW/bin/mingw32-gcc.exe', but failed!Run aborted...
查了原因,如下圖:
看一看自己是不是下載錯(cuò)了。我下載的是不帶編譯器的版本,換另一個(gè)就好了
codeblocks17.12安裝完,有 th_en_US.idx’ not found! 的提示
在CodeBlocks(以下簡(jiǎn)稱CB)菜單欄中點(diǎn)擊“Settings”,選擇“Editor…”條目,之后在左側(cè)下拉列表欄中選擇倒數(shù)第2個(gè)“SpellChecker”,隨后在右側(cè)“Path settings”中可以看到字典(Dictionaries)、(分類)辭典(Thesauri)、位圖(Bitmaps)的路徑所在。
因?yàn)樵谏鲜雎窂街?#xff0c;僅字典和位圖存在其中,而(分類)辭典缺失,所以在CB啟動(dòng)后,會(huì)有樓主所述出錯(cuò)提示。因此,只要指定(分類)辭典位置或把(分類)辭典復(fù)制到上述位置即可。
沒(méi)有(分類)辭典?
看到“Path settings”下方的“How to configure SpellChecker?”鏈接了嗎?
點(diǎn)擊它,瀏覽器轉(zhuǎn)到維基“SpellChecker plugin”頁(yè)面,下拉到“Dictionaries”條目,再點(diǎn)擊其中“download”鏈接,網(wǎng)頁(yè)又跳轉(zhuǎn)到維基“Apache Open Office”頁(yè)面。
下拉,在該頁(yè)面找到“Tools for dictionary developers”欄,找到“Thesaurus”條目,再點(diǎn)擊其中“OpenOffice.org MyThes”鏈接,下載“MyThes-1.zip”文件。
下載后解壓得到“MyThes-1.0”文件夾,找到其中“th_en_US_new.dat”和“th_en_US_new.idx”兩個(gè)文件,將其分別改名為“th_en_US.dat”和“th_en_US.idx”(亦即把兩個(gè)文件名中的_new刪除)。
最后將這兩個(gè)改名后的文件剪切復(fù)制到“Path settings”路徑中的文件夾即可。
總結(jié)
以上是生活随笔為你收集整理的CodeBlocks报错原因分析:找不到编译器 / th_en_US.idx' not found! 提示的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: ACM常见错误提示及可能的解决办法
- 下一篇: ACM练习 校赛183F:公平的游戏(T