I've a project composed from two parts:
- static library(lib) + header with utils
- main application(executable, mfc, opengl)
I've included header file in the main project files, and added library path and dependency to linker, everything worked ok on Visual Studio 2008, but, when I've ported solution to Visual Studio 2010 I received following error:
error LNK2019: unresolved external symbol "public: void __thiscall XmlTools::XmlProperty::LoadXMLFile(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?LoadXMLFile@XmlProperty@XmlTools@@QAEXV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "public: bool __thiscall CToolsPanel::ReadWorld(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >,class CSymulatorDoc *)" (?ReadWorld@CToolsPanel@@QAE_NV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAVCSymulatorDoc@@@Z)
Reference to library, and correct path are still there. I've tried to find solution here, or in google, but I can't find similar situation. Which changes between these two Visual Studio version could break something? Or I'm doing something wrong, and newer version of VS is simply more restrictive about that?