I imagine the solution to this question is really easy but for some reason I can not figure it out.
I keep getting a linker error and I know it has to be the constructor so even with the most basic code left I can't figure out whats wrong.
1 2 3 4 5 6 7 8 9 10
struct Date{
int y,m,d;
Date(int m, int d, int y);
};
int main(){
Date today(12,14,2007);
keep_window_open();
return 0;
}
1>datestruc.obj : error LNK2019: unresolved external symbol "public: __thiscall Date::Date(int,int,int)" (??0Date@@QAE@HHH@Z) referenced in function _main