vc 7.0 env.

I have a exported method that takes a CString as a param. The project that calls this method generates a unresolved external only in dubug. In release its ok.

If I add a wrapper method that takes a LPCTSTR instead of the CString it works.

The actual error is:
clSelectProjectDlg.obj : error LNK2019: unresolved external symbol "public: void __thiscall clFieldDefinition::Name(class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > const &)" (?Name@clFieldDefinition@@QAEXABV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "long __cdecl ConvertField(class clFieldDefinition &,struct IField *)" (?ConvertField@@YAJAAVclFieldDefinition@@PAUIField@@@Z)
ISDesktopAccess.obj : error LNK2001: unresolved external symbol "public: void __thiscall clFieldDefinition::Name(class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > const &)" (?Name@clFieldDefinition@@QAEXABV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
TaskPusherCtrl.obj : error LNK2001: unresolved external symbol "public: void __thiscall clFieldDefinition::Name(class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > const &)" (?Name@clFieldDefinition@@QAEXABV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)

anyone seen this error before? if so what is the cause and resolution