Question: C++ Errors: I am trying to read in a text file with data about movies. The program will then display an interface to the user
C++ Errors: I am trying to read in a text file with data about movies. The program will then display an interface to the user and allow them to search for movies, rent movies, etc. The data structure used to store the data will be a Binary Search Tree. However, I am havin trouble just reading in the file and printing the data to check if the program is working correctly. Here is the error message I recieve after I try to compile it:

If I comment the movieTree object and the #include "MovieTree.hpp" it compiles and runs, but doesn't print anything out.
Here is my code:


Here is a sample of the text file:

Here is the header file:


movtelest /tmp/ccn2JFLao: In function 'main': movieTest.cpp:.text+0x33): undefined reference to MovieTree: :MovieTee(O movieTest.cpp:(.text+0x2e6): undefined reference to MovieTree ::addMovieNode(int , std:: Cxx11::basic string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
