I'm getting the following error when trying to Build the exe:

"file:student.obj : error LNK2005: "public: void __thiscall Student::getData(void)"
(?getData@Student@@QAEXXZ) already defined in main.obj"

I've got a main.cpp, student.cpp, and student.h.

The main.cpp basically calls the getData and showData functions in student.cpp.
The student.h file defines a Student class, consisting of Name, Age, GPA.

I've put the "#ifndef, #define, #endif" in the student.h. I'm not sure why
I'm getting an error saying the getData (and showData) function is already
defined.

Any help will be greatly appreciated!!

Thanks!