I am new to SWIG and am running into a few problems.  I am trying to use SWIG to expose the C++ CFileInfoArray class to a Ruby program.  I have manged to get it all to compile, by moving some include statements (I had to move stdafx.h and FileInfo.h higher up the wrapper source file (FileInfo_wrap.cxx) to avoid trying to include windows.h in an mfc app) and updating the ruby config.h (#if _MSC_VER != 1200 to 1300 so it would support my compiler), but I am unsure what the impact of these changes are and whether they are contributing to my link problem below.

During the link step I get the following error:

FileInfo_wrap.obj : error LNK2019: unresolved external symbol "public: int __thiscall CFileInfoArray::AddFile(class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > >)" (?AddFile@CFileInfoArray@@QAEHV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "unsigned long __cdecl _wrap_CFileInfoArray_AddFile(int,unsigned long *,unsigned long)" (?_wrap_CFileInfoArray_AddFile@@YAKHPAKK@Z)

I am using Visual Studio .Net (2002) which is vc7 on windows XP SP2.

Can anyone help point me in the right direction on this to fix it?

Thanks, Mark