Carl Forsman
2009-08-21 22:07:29 UTC
why when i defined a static member i got the following error?
===================================
1>Generating Code...
1>Linking...
1>MusicDemo.obj : error LNK2001: unresolved external symbol "public:
static class midi::CMIDIOutDevice CMusicDemo::m_OutDevice"
(?***@CMusicDemo@@***@midi@@A)
1>F:\Remote\Remote\RemoteDemo\app\LifeHubDemo\\..\..\build\LifeHubDemo\LifeHubDemo.exe
: fatal error LNK1120: 1 unresolved externals
===================================
class CMusicDemo
: public Group
{
static midi::CMIDIOutDevice m_OutDevice;
};
===================================
1>Generating Code...
1>Linking...
1>MusicDemo.obj : error LNK2001: unresolved external symbol "public:
static class midi::CMIDIOutDevice CMusicDemo::m_OutDevice"
(?***@CMusicDemo@@***@midi@@A)
1>F:\Remote\Remote\RemoteDemo\app\LifeHubDemo\\..\..\build\LifeHubDemo\LifeHubDemo.exe
: fatal error LNK1120: 1 unresolved externals
===================================
class CMusicDemo
: public Group
{
static midi::CMIDIOutDevice m_OutDevice;
};