开发者

"multiple definition of `main" in eclipse (c- language) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.
#include <stdio.h>

int main()
{
    cout << "hello world";
    retu开发者_如何学编程rn 0;
}

I tried to compile this in Eclipse and it's giving me the error that there are "multiple definitions of main" and I am unable to run it... What should I do?


Check to see if there are other source files in your working directory - they may also have main methods in them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜