HighTechTalks DotNet Forums  

Link errors 2028 and 2019 when compiling with CLR

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Link errors 2028 and 2019 when compiling with CLR in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
David Wright
 
Posts: n/a

Default Link errors 2028 and 2019 when compiling with CLR - 08-15-2007 , 12:35 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:perator=(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:perator=(class CString const &)"
(??4CString@@$$FQAEAAV0@ABV0@@Z) referenced in function "public: class
TInternational & __thiscall TInternational:perator=(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_tra its@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
:-*)



Reply With Quote
  #2  
Old   
@shu
 
Posts: n/a

Default Re: Link errors 2028 and 2019 when compiling with CLR - 08-16-2007 , 10:59 AM






using CLR use System::string.


Reply With Quote
  #3  
Old   
David Wright
 
Posts: n/a

Default Re: Link errors 2028 and 2019 when compiling with CLR - 08-16-2007 , 08:46 PM



"@shu" <ashukasama (AT) gmail (DOT) com> wrote

Quote:
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
:-*)




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.