You should also include the text of that link error. Error codes like
"LNK2019" are specific to your compiler (and possibly even just that version
of the compiler), and we have no way to know what it means, or to what
functions or files it is referring.
-Howard
Here is the linker error:
AutomatonViewer error LNK2019: unresolved external symbol "public: void
__thiscall CSimulator::StartSimulation(class ATL::CStringT<char,class
StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > &,class
ATL::CStringT<char,class StrTraitMFC_DLL<char,class
ATL::ChTraitsCRT<char> > > &)"
(?StartSimulation@CSimulator@@QAEXAAV?$CStringT@DV ?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@0 @Z)
referenced in function "public: void __thiscall
CAutomatonViewerDoc::OnSimulationRun(void)"
(?OnSimulationRun@CAutomatonViewerDoc@@QAEXXZ)
Here is the function declaration from the header for class CSimulator:
void StartSimulation(CString& cstrPathInit, CString& cstrPathArchive);
And from the cpp file:
void CSimulator::StartSimulation(CString& cstrPathInit, CString&
cstrPathArchive)
{
}
The call:
void CAutomatonViewerDoc::OnSimulationRun()
{
m_simulator.StartSimulation(m_cstrPathInitFile, m_cstrPathArchive);
}