// mainfrm.h
enum
{
logAll = 0xff
};
void Log(int nIdx, LPCTSTR lpText, int nType = logAll, LPCTSTR lpDeviceName = NULL);
//SesLog.h
int m_nDeviceID;
CString m_strDeviceName;
// SesLog.cpp
#include "Mainfrm.h"
#include "SesLog.h"
void CSessionLog::Log(LPCSTR lpText)
{
if(m_pParent)
m_pParent->Log(m_nDeviceID, lpText, logAll, m_strDeviceName);
error LNK2019: unresolved external symbol "public: void __thiscall CMainFrame::Log(int,char const *,int,char const *)" (?Log@CMainFrame@@QAEXHPBDH0@Z) referenced in function "public: void __thiscall CSessionLog::Log(char const *)" (?Log@CSessionLog@@QAEXPBD@Z) \SesLog.obj
VS 2010
Help would be appreciated.
Thanks