I have a header file, General.h, that is the only header file for a
project that has three .cpp files. General.h has extern definitions for
many global variables and function prototypes.
General.h also has a single class definition.
When compiling I get this error
general.h(82) : error C2143: syntax error : missing ';' before '*'
when I have the following arrangement
extern CBitmapFile * pCBitmap_faces;
// other stuff
class CBitmapFile
{
// class contents defn?.
};
I do not get error C2143 if
extern CBitmapFile * pCBitmap_faces;
Comes after the class definition. I thought that extern meant that "I
promise I will define all after extern in due course."
Thanks.
Thomas