我刚刚安装了Dev C++,我正在学习C编程.我使用的代码是
#include <stdio.h>
int main()
{
printf("Hello world");
getch();
}
Run Code Online (Sandbox Code Playgroud)
我把它保存为.c文件.当我编译它工作正常,但当我编译并运行它说源文件没有编译.所以我搜索了buncha的东西,并在youtube上看到了这个视频,告诉你如何修复它.我还看到谷歌上的其他论坛提出同样的建议......然而,在做了什么之后问道,现在我甚至无法编译我的代码.我收到这个错误
Compiler: Default compiler
Executing C:\Dev-Cpp\bin\gcc.exe...
C:\Dev-Cpp\bin\gcc.exe "C:\Users\ubaid\Documents\C\Untitled1.c" -o "C:\Users\ubaid\Documents\C\Untitled1.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Execution terminated
Run Code Online (Sandbox Code Playgroud)
我也用过这个链接上的问题,但仍然没有运气.. http://learntogeek.com/miscellaneous/solved-source-file-not-compiled-error-in-dev-cpp/
我正在使用Windows 8
安装新版本的Dev c ++.它在Windows 8中运行良好.它还支持64位版本.
下载链接是http://sourceforge.net/projects/orwelldevcpp/.
小智 0
您始终可以尝试从命令提示符手动执行此操作。导航到文件的路径并输入:
gcc filename.c -o filename
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
193849 次 |
| 最近记录: |