2013-10-31 34 views
1

我必須使用OpenCV完成一些項目。我下載了Eclipse,使用CDT升級了它,安裝了MinGW並鏈接了OpenCV庫。但是我仍然無法啓動單個程序!無法運行程序「g ++」:啓動失敗 - Eclipse C++

01:27:48 **** Rebuild of configuration Debug for project Detector **** 
Info: Internal Builder is used for build 
g++ "-IC:\\opencv\\build\\include" "-IC:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\include" "-IC:\\MinGW\\mingw32\\lib\\gcc\\mingw32\\4.8.1\\include" "-IC:\\MinGW\\mingw32\\include" "-IC:\\MinGW\\include" "-IC:\\opencv\\build\\include\\opencv" "-IC:\\opencv\\build\\include\\opencv2" "-IC:\\opencv\\include" "-IC:\\opencv\\include\\opencv" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\main.o" "..\\src\\main.cpp" 
Cannot run program "g++": Launching failed 

Error: Program "g++" not found in PATH 
PATH=[C:\MinGW\bin;C:\MinGW\msys\1.0\binC:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files (x86)\EasyPHP-DevServer\binaries\php\php_runningversion;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Bitvise SSH Client;C:\opencv\build\bin\;C:\opencv\build\x86\vc10\bin\;C:\opencv\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Java\jre7\bin\;C:\eclipseCPP\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Bitvise SSH Client;C:\opencv\build\bin\;C:\opencv\build\x86\vc10\bin\;C:\opencv\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Java\jre7\bin\;C:\eclipseCPP] 

有人可以告訴我,問題在哪裏? (我工作在Windows上)

+0

你可以在某個命令窗口中運行'g ++'嗎?並且'c:\ MinGW \ bin \ g ++'?你有沒有考慮安裝和使用Linux?你不需要Eclipse(但只是一些編輯器)使用'g ++'! –

+1

你知道你的'g ++'可執行文件位於哪個文件夾嗎?你需要將它添加到'PATH'環境變量 – lolando

+0

它可以在Windows中的位置?或者我應該下載一些東西? – pavlucco

回答

0

安裝MinGW後,仍然需要在MinGW中安裝gcc和g ++編譯器。

相關問題