I can't find the unresolved external my compiler keeps finding.

I'm trying to code a program where you "run" a video game company, but it's not even letting me display the menu to the user. I just started it, so there's not much to go wrong, therefore, not much to look over again.

Here's the main file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #include <iostream>
#include <iomanip>
#include <string>

using namespace std;

#include "gamecompany.h"

void showMenu();
void addGame();

int main() {
	showMenu();

	system("pause");
	return 0;
}


The implementation file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <iomanip>
#include <string>

#include "gamecompany.h"

using namespace std;

void gamecompany::showMenu()
{
	cout << "Choose one of the following options by typing in the appropriate number." << endl;
	cout << "1 - Add a new game" << endl;
	cout << "2 - View game list by genre" << endl;
}


And the header file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string>
#include <iostream>
using namespace std;

class gamecompany
{
private: void printlistgenre();

public:
	void printName();
	void showMenu();
	void printbygenre();

};
You do not have global function called showMenu().
Lines 9 and 10 do not refer to any function.
Topic archived. No new replies allowed.