![]() |
Linker error for CSingleWorkspace |
Post Reply ![]() |
Author | |
RichardPreen ![]() Newbie ![]() Joined: 01 February 2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 01 February 2007 at 4:25pm |
I need to provide my own implementation for CSingleWorkspace. With the following code; #define _XTP_STATICLINK class CMyTabClientWnd : public CXTPTabClientWnd public: I get the following 4 linker errors; MyTabClientWnd.obj : error LNK2001: unresolved external symbol "protected: virtual class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall CXTPTabClientWnd::GetItemText(class CWnd const *)const " (?GetItemText@CXTPTabClientWnd@@MBE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@PBVCWnd@@@Z) MyTabClientWnd.obj : error LNK2001: unresolved external symbol "protected: virtual class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall CXTPTabClientWnd::GetItemTooltip(class CXTPTabManagerItem const *)const " (?GetItemTooltip@CXTPTabClientWnd@@MBE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@PBVCXTPTabManagerItem@@@Z)
MyTabClientWnd.obj : error LNK2001: unresolved external symbol "public: virtual class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall CXTPTabManager::GetItemCaption(class CXTPTabManagerItem const *)const " (?GetItemCaption@CXTPTabManager@@UBE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@PBVCXTPTabManagerItem@@@Z)
MyTabClientWnd.obj : error LNK2001: unresolved external symbol "protected: virtual class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall CXTPTabClientWnd::CWorkspace::GetItemTooltip(class CXTPTabManagerItem const *)const " (?GetItemTooltip@CWorkspace@CXTPTabClientWnd@@MBE?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@PBVCXTPTabManagerItem@@@Z)
Using MFC in a shared DLL, and linking to CodeJock as a static lib. Any ideas how to resolve this? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Again looks like tchar_t option problem.
Check that option
Configuration Properties->C/C++->Language->Treat wchar_t as Builtin Type
Is "Yes"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
RichardPreen ![]() Newbie ![]() Joined: 01 February 2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
My application needs "Treat wchar_t as Builtin Type" to be No. What other alternatives do I have? |
|
![]() |
|
RichardPreen ![]() Newbie ![]() Joined: 01 February 2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I just tried setting all "Treat wchar_t as Builtin Type" within CommandBarsStatic_vc80.vcproj to No, but that just generated me a lot of other errors instead.
|
|
![]() |
|
RichardPreen ![]() Newbie ![]() Joined: 01 February 2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
sorted, cleaned and rebuild, looks ok now, thanks for pointing me in the right direction.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |