#include <stdio.h>
int main()
{
cout << "hello world";
return 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?
#include <stdio.h>
int main()
{
cout << "hello world";
return 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.