help not sure what error meassage means.

I'm in a computer programming class and having trouble. The assignment is:

Write a program that uses a structure named MovieData to store the following information about a movie:

Title
Director
Year Released
Running Time (in minutes)

The program should create two MovieData variables, store values in their members, and pass each one, in turn, to a function that displays the information about the movie in a clearly formatted manner.

The problem im having is im getting two error messages and I have
no idea what they mean.
The first is:
error LNK2019: unresolved external symbol "void __cdecl movieDisplay(struct Movie,struct Movie)" (?movieDisplay@@YAXUMovie@@0@Z) referenced in function _main
and the second is:
error LNK1120: 1 unresolved externals

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  #include <iostream>
using namespace std;

struct Movie
{
	char title;
	char director;
	int year;
	int length_min;
};

void getMovieInfo(Movie&, Movie&);
void movieDisplay(Movie, Movie);


int main()
{
	Movie mov_one, mov_two;
	
	cout << "\n   Movie Displayer 2000"
		 << "\n   --------------------";

	getMovieInfo(mov_one, mov_two);
	movieDisplay(mov_one, mov_two);
	
	return 0;
}


void getMovieInfo(Movie &m1, Movie &m2)
{
	
	cout << "\n   First Movie"
         << "\n   -----------"
	     << "\n   Enter the title of the movie: ";
	cin  >> m1.title;

	cout << "\n   Enter the Director's name of the movie: ";
	cin >> m1.director;

	cout << "\n   Enter the year the movie was released: ";
	cin >> m1.year;

	cout << "\n   Enter runtime of the movie in minutes: ";
	cin >> m1.length_min;

	cout << "\n---------------------------------\n"
	     << "\n   Second Movie"
         << "\n   ------------"
		 << "\n   Enter the title of the movie: ";
	cin >> m2.title;

	cout << "Enter the Director's name of the movie: ";
	cin >> m2.director;

	cout << "Enter the year the movie was released:  ";
	cin >> m2.year;

	cout << "Enter runtime of the movie in minutes:  ";
	cin >> m2.length_min;
}

void MovieDisplay(Movie m1, Movie m2)
{
	cout << "\n---------------------------------"
		 << "\n   First Movie"
		 << "\n   Movie Title: " << m1.title
		 << "\n   Director's Name: " << m1.director
		 << "\n   Release Year: " << m1.year
		 << "\n   Movie Runtime (minutes): " << m1.length_min
	     << "\n---------------------------------"
	     << "\n   Second Movie"
		 << "\n   Movie Title: " << m2.title
	     << "\n   Director's Name:  " << m2.director
		 << "Release Year:  " << m2.year << endl
	     << "Movie Runtime (minutes): " << m2.length_min << "\n\n";

}


any advice would be appreciated.
It's basically saying you've written a function prototype that you haven't fulfilled.

In this case, it's the movieDisplay function. Note, for the prototype you've used a lower case 'm' but in the implementation you've use an upper case 'm'.
Oh snap!

Didn't notice
Thanks for the help.

~ EBC

Topic archived. No new replies allowed.