开发者

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

开发者 https://www.devze.com 2023-02-28 14:51 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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