Main already defined

code: int main() {
return 0;
}
Error LNK2005 _main already defined in BullCowGame.obj

“This error can occur when a header file defines a variable. For example, if you include this header file in more than one source file in your project, an error results.”
(I found this by clicking on the Error, “LNK2005”)

Have you created this elsewhere, perhaps?

Privacy & Terms