No BullCowGame.exe?

so my code and stuff is the same as in the lecture but i get an error returned saying “unresolved external”.

There is no .exe file for BullCowGame in the folders anywhere.

suggestions?

Well it sounds like it didn’t compile so it hasn’t been made as a resullt. What’s the full error message and your code?

screen caps of the lot here, not really sure where i have gone wrong

By any chance did you create a Win32 project as opposed to a Win32 Console Application project?

C++ is case sensitive, and is looking for a program called “main” to run when the program starts, not “Main”…

1 Like

Hi there, it could be as simple as putting a space between the #include and the as mentioned by another commentor C++ can be finicky

Solved this now, no idea why it wasn’t working but i deleted the source file and redid it from there and its fine now :smiley: cheers

Good to hear!
You could check what you have now with your previous screenshot… Pretty sure it’s because of what I pointed out above: you can see that your error wasn’t a compilation error (the code in itself was fine), but a linking error (it basically says “cant find ‘main’”).

Yeah, I missed that but that’s most likely what the problem was.

the source file was actually called Main in my directory shrugs

The problem is the function name, it doesn’t matter what the file name is called.

good:

int main()
{
    return 0;
}

bad:

int Main()
{
    return 0;
}
1 Like