c - 初学c,工程不编译?

标签 c

#include <stdio.h>
#include <stdlib.h>
int main(int argc,char *argv[])
{

    system("PAUSE");
    return 0;
}

编译程序后,单击运行。它仍然提示我“项目未编译”为什么?对不起,我是c的新手。

我正在使用 dev c++,在 xp 上,ctrl+F9 编译然后 ctrl+F10 运行 它显示项目未编译

enter image description here

最佳答案

multiple definition of main

也许在您的项目中有 2 个 Main 函数.. 你至少应该删除/更改一个..

如果我看到,有1-3.c和1c.c

编译出错..

[Build Error]

中国工业 union 会

关于c - 初学c,工程不编译?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10509347/

相关文章:

C:允许将任何数组分配给指向不完整类型数组的指针

c - Linux libudev 测试应用程序未接收到 REMOVE 事件

调用 malloc,未知大小

c - 我怎样才能知道 C 中接口(interface)的 IP 地址?

用 gcc 编译 .c

c++ - C/C++ 警告 : address of temporary with BDADDR_ANY Bluetooth library

c - 如何使用 MPI 并行化点积

c - 当我用 c 语言编译程序时,为什么会得到一个 undefined reference (例如 `glColor3f')?

c - double free or corruption (fasttop) 错误 c/c++ linux

C - 在整数变量中查找初始化数据的大小