DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 15 Aug 2007 14:35:13 +1000,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    David Wright
          2    @shu
                 3    David Wright


Link errors 2028 and 2019 when compiling with CLR   
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
:-*)
Date:Wed, 15 Aug 2007 14:35:13 +1000   Author:  

Re: Link errors 2028 and 2019 when compiling with CLR   
using CLR use System::string.
Date:Thu, 16 Aug 2007 07:59:09 -0700   Author:  

Re: Link errors 2028 and 2019 when compiling with CLR   
"@shu"  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
:-*)
Date:Fri, 17 Aug 2007 10:46:22 +1000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us