[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Link errors 2028 and 2019 when compiling with CLR

David Wright

8/15/2007 4:35:00 AM

Can anyone help me?

With the CLR switch off my projects compile and link fine but with it on
some classes defined in one dll are not linkable to another dll? I have
project dependencies set as well between the projects. Is there something
more to do? It is as though the classes are not being exported from the 1st
dll?

Sample link errors below...

INTERNAT.obj : error LNK2028: unresolved token (0A0003E2) "public: void
__thiscall CString::to_upper(void)" (?to_upper@CString@@$$FQAEXXZ)
referenced in function "public: class CString __thiscall
TInternational::intlTime(class CString const &,bool,bool)"
(?intlTime@TInternational@@$$FQAE?AVCString@@ABV2@_N1@Z)
INTERNAT.obj : error LNK2028: unresolved token (0A0003E3) "public: void
__thiscall CString::to_lower(void)" (?to_lower@CString@@$$FQAEXXZ)
referenced in function "public: class CString __thiscall
TInternational::intlTime(class CString const &,bool,bool)"
(?intlTime@TInternational@@$$FQAE?AVCString@@ABV2@_N1@Z)
WINCURR.obj : error LNK2028: unresolved token (0A0003D9) "public: class
CString & __thiscall CString::operator=(class CString const &)"
(??4CString@@$$FQAEAAV0@ABV0@@Z) referenced in function "unsigned int
__cdecl makecurrency(char *,unsigned int,char *,char *,int,int,int,int,char
const *,char const *,char const *)" (?makecurrency@@$$FYAIPADI00HHHHPBD11@Z)
INTERNAT.obj : error LNK2028: unresolved token (0A0003E4) "public: class
CString & __thiscall CString::operator=(class CString const &)"
(??4CString@@$$FQAEAAV0@ABV0@@Z) referenced in function "public: class
TInternational & __thiscall TInternational::operator=(class TInternational
const &)" (??4TInternational@@$$FQAEAAV0@ABV0@@Z)
INTERNAT.obj : error LNK2028: unresolved token (0A000C5D) "public: class
CString __thiscall CString::strip(enum CString::StripType,char)"
(?strip@CString@@$$FQAE?AV1@W4StripType@1@D@Z) referenced in function
"public: class CString __thiscall TInternational::time(class CString const
&,bool)" (?time@TInternational@@$$FQAE?AVCString@@ABV2@_N@Z)
INTERNAT.obj : error LNK2019: unresolved external symbol "public: virtual
__thiscall CString::~CString(void)" (??1CString@@$$FUAE@XZ) referenced in
function "class CString __cdecl operator+(class CString const &,class
CString const &)" (??H@$$FYA?AVCString@@ABV0@0@Z)
WINCURR.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall CString::~CString(void)" (??1CString@@$$FUAE@XZ)
INTERNAT.obj : error LNK2019: unresolved external symbol "public: __thiscall
CString::CString(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??0CString@@$$FQAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
referenced in function "class CString __cdecl operator+(class CString const
&,class CString const &)" (??H@$$FYA?AVCString@@ABV0@0@Z)



Thanks in advance
dave
:-*)


2 Answers

@shu

8/16/2007 2:59:00 PM

0

using CLR use System::string.

David Wright

8/17/2007 12:46:00 AM

0

"@shu" <ashukasama@gmail.com> wrote in message
news:1187276349.612270.255850@g4g2000hsf.googlegroups.com...
> using CLR use System::string.

Maybe one day I will convert ALL the code to use the .NET String....

BUT This is not a suitbale fix. It is not failing to link as it is a string
class...There is some compile option or dependency i need to establish.

dave
:-*)