|
-
September 6th, 2005, 02:10 PM
#1
Linker error with CString only in debug
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
and Canada rocks!! Peace bro.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|