【问题标题】:Source file not compiled, even after compilation process is complete源文件未编译,即使在编译过程完成后
【发布时间】:2013-09-05 21:08:44
【问题描述】:

我在 Windows 8 上安装了 Dev C++,这是我的第一个程序,但是在我运行它之前它运行平稳。

这是我的第一个程序:

当我编译它时...

然而,当我运行它时,这里出现了问题......

但是编译器日志显示此消息:

Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "C:\Users\Zainab\Downloads\Table.c (2).c" -o "C:\Users\Zainab\Downloads\Table.c     (2).exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib" 
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.

代码:

#include<stdio.h>

int main()
{
    int a, b, c=1;

    printf("Enter the table of:");
    scanf("%d", &a);
    printf("Enter the number of times:");
    scanf("%d", &b);

    while (c <= b) {
        printf("%d", a);
        printf("* %d", c);
        printf("= %d", a*c);

        if (c < b) {
            printf("\n");
        }

        c++;
    }

    return 0;
    getch();
}

【问题讨论】:

  • Dev-C++ ?!?你能用一些更新的东西,比如 Code::Blocks 吗?
  • 也许检查“日志”按钮以查看实际的编译器错误?
  • 请将您的实际代码放在这里。不是打印屏幕。
  • Dev-C++ 已被废弃多年。请使用更新的内容,例如 Code::Blocks。
  • @OP:请参阅标签 dev-c++info 部分以找到 Dev-C++ 的一些替代方案。

标签: c++ c dev-c++


【解决方案1】:

使用更好的工具。 Dev-C++ 已被废弃。 一个很好的免费开源 C++ IDE 是 CodeBlocks。 还有其他的,例如Orwell Dev-C++

【讨论】:

  • Orwell Orwell Dev-C++ 不是 Dev-C++。添加了你的 ide。
猜你喜欢
  • 1970-01-01
  • 2018-09-15
  • 2013-01-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多