Just like my question says: Is there a way to declare a pointer in a header file and instantiate it in .cpp?
I still have this:
.h:
FILE* stream;
.cpp
stream = fopen("com2", "r");
But this will give me this error:
1> gpsHandler.obj: error LNK2001: unresolved external symbol "struct _iobuf * stream" (? Stream @@ 3PAU_iobuf @@ A) 1> C: \ Users *** \ portReading \ Debug \ portReading.exe: fatal error LNK1120: 1 unresolved external
source
share