"multiple definition of `main" in eclipse (c- language) [closed]
#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.
精彩评论