Project.obj : error LNK2019: unresolved external symbol

I've created a void function which prints a certain noughts and crosses position:

1
2
3
4
5
6
7
8
9
10
11
void botchoice_a1_a3()
{
	cout <<
		"    1    2   3\n"
		"a    x | x | o \n"
		"    ___|___|___\n"
		"b      |   |   \n"
		"    ___|___|___\n"
		"c      |   | o \n"
		"       |   |   \n";
}


I've declared it in the main cpp file, but I am welcomed with this sentence:

Project.obj : error LNK2019: unresolved external symbol "void __cdecl botChoice_a1_a3(void)" (?botChoice_a1_a3@@YAXXZ) referenced in function _main


Could anyone tell me what that means?
It means exactly what it says. The external symbol "void __cdecl botChoice_a1_a3(void)" has not been defined anywhere.

Look back at your code, remembering that C++ is case sensitive - I think your problem is just a simple typo.
Yes it was.

Thank you.

(God, I suck at programming.)
Thank you.

No problem :)

(God, I suck at programming.)

Don't view it like that. We all have to be beginners some time =P As you progress, you'll get better at locating silly mistakes like that because you'll have seen them before. And when in doubt, just read the compiler error carefully - at least until you start using templates (and probably some other advanced things...), the errors messages are often fairly helpful.
Topic archived. No new replies allowed.