Aug 25, 2009 at 4:48am
Is the declaration of DialogData available to B.cpp?
Aug 25, 2009 at 5:33am
I'm having a hard time seeing the problem. Post all three files (that is, the header, A.cpp, and B.cpp).
Aug 25, 2009 at 7:46am
I've resolved this as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
HEADER.H
typedef struct
{
char author_surname[64];
char author_forename[64];
char title[64];
char isbn[20];
char genre[MAXLENGTH+1];
ushort radBtnCategory;
} DialogData;
extern DialogData *addBookData;
|
1 2 3
|
B.CPP
DialogData *addBookData;
|
1 2 3
|
A.CPP
// no declaration of addBookData - the structure members are initialized in A.CPP
|
I have a successful compilation with this.
Last edited on Aug 25, 2009 at 8:05am