- Feb 15, 2003
- 693
- 0
- 0
Hello,
I am writing a student report generator that has 3 classes in it:
Person.h and Person.cpp
Student.h and Student.cpp
Course.h and Course.cpp
they are defined as such: Student is a person(by inheritance) and Student has a dynamic array of Course objects.
My classes all work great but my problem comes when I try to compile from main only, or from a project that only has Student.h and Student.cpp. It gives me errors that it basically can not find he person stuff or the course stuff. I have all the apprpriate #include "xxxx.h" in the appropritate places. I will not be penalized for having all the class headers and definitions in the project but I am unsure as to why using my includes do not work as I expect them to. All implementation is done in the cpp files. Any help would be much appreciated. Thanks.
Ben
I am writing a student report generator that has 3 classes in it:
Person.h and Person.cpp
Student.h and Student.cpp
Course.h and Course.cpp
they are defined as such: Student is a person(by inheritance) and Student has a dynamic array of Course objects.
My classes all work great but my problem comes when I try to compile from main only, or from a project that only has Student.h and Student.cpp. It gives me errors that it basically can not find he person stuff or the course stuff. I have all the apprpriate #include "xxxx.h" in the appropritate places. I will not be penalized for having all the class headers and definitions in the project but I am unsure as to why using my includes do not work as I expect them to. All implementation is done in the cpp files. Any help would be much appreciated. Thanks.
Ben
