Having issues fixing these issues:Error 2 error LNK2019: unresolved external symbol "public: __thiscall grid::grid(void)" (??0grid@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'GridObject''(void)" (??__EGridObject@@YAXXZ) F:\Dev103\thermonuclear war game\thermonuclear war game\Grid.obj
Error 3 error LNK1120: 1 unresolved externals F:\Dev103\thermonuclear war game\Debug\thermonuclear war game.exe 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//header file
#include <iostream>
usingnamespace std;
class grid{
int r, c;
public:
grid();
void GridFunction();
int getR(){return r;}
int getC(){return c;}
void setR(int a){a = r;}
void setC(int b){b = c;}
};
//create object
extern grid GridObject; //has something to do with this, when commented out fixes that error but rest of my program has issues.