Multi - File Program not finding files
I am working on a databse type program now, and I am still pretty new, so it is my first multi file program I've written. The problem is I have variables, arrays and functions that are defined within one .cpp file that we'll call file2. I have also created a file2.h, and include it in the preprocessor directives at the beginning of my main program file, we'll call file1.cpp. However, every time I try to display a variable that was defined in file2, it won't work. It says,
error C2065: 'bookTitle' : undeclared identifier
error C2109: subscript requires array or pointer type
It's like its not reading the other files to the program. Is there something I need to do to link them together? Please help!