[問題]CreateProcess:No such file or Directory

看板C_and_CPP作者 (魯維哥)時間9年前 (2017/01/07 20:36), 編輯推噓6(601)
留言7則, 7人參與, 最新討論串1/1
開發平台(Platform): (Ex: Win10, Linux, ...) Win Vista 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) Dev-C++ 5.11 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 要編譯時會出現如圖的狀況 http://imgur.com/a/Fqjtf CreateProcess:No such file or Directory 餵入的資料(Input): 預期的正確結果(Expected Output): 應該會產生一個可執行檔 錯誤結果(Wrong Output): C:\Users\Huang\Desktop\g++.exe [Error] CreateProcess: No such file or directory 程式碼(Code):(請善用置底文網頁, 記得排版) // function main begins program execution int main() { int x; // first integer to multiply int y; // second integer to multiply int z; // third integer to multiply int result; // the product of the three integers cout << "Enter three integers: "; // prompt user for data cin >> x >> y >> z; // read three integers from user result = x * y * z; // multiply the three integers; store result cout << "The product is " << result << endl; // print result; end line return 0; // indicate program executed successfully } // end function main 補充說明(Supplement): 我有在另一台電腦(Win 7)用同一個編譯器,沒有這問題。 但換了一台電腦(Win Vista)就出現這問題了。 程式碼是書中的範例,所以不可能有錯。 會是我作業系統的問題嗎? g++.exe這個檔是什麼呀? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.169.33.211 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1483792616.A.1AE.html

01/07 20:50, , 1F
我覺得是你的dev-c++沒灌好
01/07 20:50, 1F

01/07 20:53, , 2F
vista...
01/07 20:53, 2F

01/07 21:04, , 3F
Vista 配 Dev C++ 絕配
01/07 21:04, 3F

01/08 11:54, , 4F
vista dev 最強的兩個你都用了XD
01/08 11:54, 4F

01/09 00:27, , 5F
超強
01/09 00:27, 5F

01/09 10:11, , 6F
XDDD
01/09 10:11, 6F

01/09 13:02, , 7F
是5.11不是那個4.9.9.2
01/09 13:02, 7F
文章代碼(AID): #1OSE3e6k (C_and_CPP)