作者HIAWIE (鲁维哥)
看板C_and_CPP
标题[问题]CreateProcess:No such file or Directory
时间Sat Jan 7 20:36:54 2017
开发平台(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://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1483792616.A.1AE.html
1F:推 james732: 我觉得是你的dev-c++没灌好 01/07 20:50
2F:→ grayStone: vista... 01/07 20:53
3F:推 asd456fgh778: Vista 配 Dev C++ 绝配 01/07 21:04
4F:推 jack1218: vista dev 最强的两个你都用了XD 01/08 11:54
5F:推 bachelorwhc: 超强 01/09 00:27
6F:推 BlazarArc: XDDD 01/09 10:11
7F:推 TobyH4cker: 是5.11不是那个4.9.9.2 01/09 13:02