I have four files in a project. Two header files and two .CPP files. Main.cpp, Main.h, Object.h, Object.cpp.
In Main.cpp I have the code, #include "Main.h".
In Main.h I have the code, #include "Object.h".
And in Obect.cpp I have the code, #include "Object.h".
To my understanding this should link them all and it should work correctly. The problem I'm seeing is that in Object.cpp all the variables that I declared are coming up undeclared even know the syntax and variable names are correct. I can post my code but it would take up more than 1100 lines. I'll post it if you can't help me with just the information I provided. Thanks.