MinGW安裝及配置(為eclipse)

2021-08-21 07:10:05 字數 2047 閱讀 6746

(2)mingw安裝

1.雙擊mingw-get-setup.exe進行直接安裝,之後會有「mingw installation manager」介面,選擇如下(開發c++的選擇)。

解決方法1:刪除mingw安裝目錄,重新安裝(這個看人品,試了兩次,安裝包失敗的個數雖然減少了,但還沒徹底解決);

如gdb-7.6.1-1-mingw32-bin.tar.lzma

的檔案目錄為home 

/ mingw

/ extension

/ gdb

/ gdb-7.6.1-1;

gcc-core-6.3.0-1-mingw32-bin.tar.xz的檔案目錄為home 

/ mingw

/ base

/ gcc

/ version6

/ gcc-6.3.0;

gcc-c++-6.3.0-1-mingw32-bin.tar.xz

的檔案目錄為home 

3.配置:

d:\greensoftwares\mingw\bin  下的  mingw32-make.exe修改為make.exe

系統的環境變數配置如下:

c_include_path            d:\greensoftwares\mingw\include

library_path                 d:\greensoftwares\mingw\lib

path                                d:\greensoftwares\mingw\bin   (增加)       

i.問題

(1)在用上述方法解決問題之前,雖然在命令列中輸入gcc --version可以檢視到gcc版本,但是在eclipse執行測試時出現問題:launch failed: binary not found,problems 提示了「g++」not found in path。

使用了ctrl+b也無法解決

(2)庫的問題解決後,problems中不再有關於「path」的提示,但仍有launch failed. binary not found。

這時,應當按ctrl + b (每次新建project都要操作)或者右擊project-->build project

(3)symbol 'std' could not be resolved錯誤提示的解決方案

"window -> preferences -> c/c++ -> build -> environment", 

新增兩個新的環境變數:

lang= en_us      

lc_all=en_us

若還有錯誤需要儲存下project

ii.參考:

(eclipse搭建c/c++開發環境)

(mingw安裝及配置過程)

(no such file or directory的問題)

(mingw&msys的手工安裝)

(eclipse編寫c++出現symbol 'std' could not be resolved錯誤提示的解決方案)

MinGW安裝及使用vscode寫C C

d mingw在cmd輸入命令,看看是否安裝成功。gcc v make v 這裡我把原來的mingw32 make改名為make了 安裝外掛程式 c 外掛程式和code runner 配置檔案 1 launch.json exe 可執行檔案的路徑和檔名稱 args file1 file2 主函式呼叫...

C語言入門 mingw64安裝 配置

你也甭管他們是什麼,接下來開啟bin資料夾,就是這個如下 開啟之後是這樣的,如下,你也千萬不要去開啟那些程式,什麼都不要動,然後複製路徑 路徑要到達bin資料夾,比如e mingw64 bin,然後就簡單了,配置環境 首先開啟此電腦 也可能是我的電腦 然後會看到這樣 也有可能不是,但大同小異 點選 ...

windows Nginx 安裝及配置

到nginx for windows php 其次安裝nginx 預設安裝到c nginx 然後以cgi 模式安裝php 到c php 接下來就是nginx 配置 我的nginx 配置單 php配置http www.tonightdream.com archives 207.html php解壓置c...