error LNK2001: unresolved external symbol "class CCdxUAttSpecs * m_pUAS" (?m_pUAS@@3PAVCCdxUAttSpecs@@A)
in cdxuatts.h, I have the following code:
public:
void FixSize(char *, int);
in cdxuattspecs.h, I have the following code:
public:
int GetAndSetSpecs(int, char *);
CString m_szHelp;
in cdxuattqr.cpp I have the following code:
#include "CdxUAtts.h"
#include "CdxUAttSpecs.h"
extern CCdxUAttSpecs *m_pUAS;
extern CCdxUAtts *m_pUA;
.
.
.
m_pUA->FixSize(name, 16);
.
.
.
if(m_pUAS->GetAndSetSpecs(1, text))
m_szUAQRHelp = m_pUAS->m_szHelp;
.
.
.
Can this be related to the fact that GetAndSetSpecs is an "int" while FixSize is "void"?
Prior to adding the code referencing CCdxUAttSpecs, the code that referenced CCdxUAtts compiled, linked and executed just fine. I fully expected the same to happen with CCdxUAttSpecs but for some reason, I get a link error.