Click here to Skip to main content
15,905,136 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: how to get the parent data Pin
sheerprogrammer5-Nov-05 17:47
sheerprogrammer5-Nov-05 17:47 
Question.Net 1.1 question Pin
Stanciu Vlad4-Nov-05 11:12
Stanciu Vlad4-Nov-05 11:12 
AnswerRe: .Net 1.1 question Pin
S. Senthil Kumar4-Nov-05 21:52
S. Senthil Kumar4-Nov-05 21:52 
GeneralRe: .Net 1.1 question Pin
Stanciu Vlad5-Nov-05 6:14
Stanciu Vlad5-Nov-05 6:14 
GeneralRe: .Net 1.1 question Pin
Kevin McFarlane6-Nov-05 4:35
Kevin McFarlane6-Nov-05 4:35 
QuestionSerializing BindingList Pin
Larry R. Weinheimer4-Nov-05 8:23
Larry R. Weinheimer4-Nov-05 8:23 
AnswerRe: Serializing BindingList Pin
Larry R. Weinheimer4-Nov-05 11:57
Larry R. Weinheimer4-Nov-05 11:57 
Questionlinker errors porting from .NET 1.1 to 2.0 Pin
chucker754-Nov-05 2:30
chucker754-Nov-05 2:30 
Hi Folks,

I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this
worked fine. When moving to .NET 2.0 I get a couple of unresolved externals /
linker errors:

Error 16 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Parameter.obj
Error 17 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
__thiscall std::bad_alloc::bad_alloc(char const *)"
(??0bad_alloc@std@@$$FQAE@PBD@Z) Imagic.obj
Error 18 error LNK2028: unresolved token (0A000008) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 19 error LNK2028: unresolved token (0A000347) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Parameter.obj
Error 20 error LNK2028: unresolved token (0A0003D3) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::bad_alloc::`vector deleting destructor'(unsigned int)"
(??_Ebad_alloc@std@@$$FUAEPAXI@Z) Imagic.obj
Error 21 error LNK2028: unresolved token (0A000358) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 22 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Align2D.obj
Error 23 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 24 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Imagic.obj
Error 25 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Parameter.obj
Error 26 error LNK2019: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 27 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Imagic.obj
Error 28 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Parameter.obj
Error 29 error LNK2019: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 30 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Imagic.obj
Error 31 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Parameter.obj
Error 32 fatal error LNK1120: 9 unresolved externals Debug\empDll.dll

In my .NET 1.1 Project I had to make the following Linker Settings to build
the DLL:

1.) Additional Dependencies: mscoree.lib msvcrt.lib (or msvcrtd.lib for
debug version) mystaticlib.lib

2.) Ignore Specific Library: nochkclr.obj

3.) Force Symbol Reference: __DllMainCRTStartup@12

In my Wrapper Classes I had to add the following:

#using <mscorlib.dll>

using namespace System;
using namespace System::Runtime::InteropServices;

This does not work any longer with the new Visual Studio and the new .NET
Framework.

The only article that I was able to find on this subject:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/TransGuide.asp

Doesn´t mention Linker settings at all.

Could anybody please help me or tell me where to go for further reading?
Thanks in Advance for your efforts.

Chucker
QuestionVS 2003 IDE issue Pin
matthias s.4-Nov-05 1:56
matthias s.4-Nov-05 1:56 
QuestionUrlEditor doesn't display in design time Pin
smoitry3-Nov-05 22:50
smoitry3-Nov-05 22:50 
Questionfile monitoring low level Pin
UgoDeschamps3-Nov-05 6:40
UgoDeschamps3-Nov-05 6:40 
AnswerRe: file monitoring low level Pin
Dave Kreskowiak3-Nov-05 14:05
mveDave Kreskowiak3-Nov-05 14:05 
QuestionInsert Line of Text in Text File Pin
Rabbit173-Nov-05 6:08
Rabbit173-Nov-05 6:08 
AnswerRe: Insert Line of Text in Text File Pin
Rabbit173-Nov-05 7:31
Rabbit173-Nov-05 7:31 
GeneralRe: Insert Line of Text in Text File Pin
Dave Kreskowiak3-Nov-05 14:03
mveDave Kreskowiak3-Nov-05 14:03 
Question.NET Threads taking CPU time while suspended Pin
khariv2-Nov-05 22:58
khariv2-Nov-05 22:58 
AnswerRe: .NET Threads taking CPU time while suspended Pin
akyriako782-Nov-05 23:56
akyriako782-Nov-05 23:56 
GeneralRe: .NET Threads taking CPU time while suspended Pin
khariv3-Nov-05 5:32
khariv3-Nov-05 5:32 
GeneralRe: .NET Threads taking CPU time while suspended Pin
akyriako783-Nov-05 10:25
akyriako783-Nov-05 10:25 
AnswerRe: .NET Threads taking CPU time while suspended Pin
akyriako782-Nov-05 23:57
akyriako782-Nov-05 23:57 
AnswerRe: .NET Threads taking CPU time while suspended Pin
S. Senthil Kumar3-Nov-05 1:02
S. Senthil Kumar3-Nov-05 1:02 
QuestionOnPaintBackground isn't getting called Pin
OlliesDad2-Nov-05 12:21
OlliesDad2-Nov-05 12:21 
AnswerRe: OnPaintBackground isn't getting called Pin
OlliesDad2-Nov-05 13:23
OlliesDad2-Nov-05 13:23 
QuestionPInvokeStackImbalance (Net 2.0) Pin
Angelo Cresta2-Nov-05 3:32
professionalAngelo Cresta2-Nov-05 3:32 
AnswerRe: PInvokeStackImbalance (Net 2.0) Pin
Angelo Cresta3-Nov-05 3:29
professionalAngelo Cresta3-Nov-05 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.