R
Ralf Jablonski
Help !
I have created a Visual C++ class library (.net assembly) project with two
classes
named Base and Derived where Derived inherits from Base.
During link I get the following linker error:
Test.obj : error LNK2001: Unresolved external symbol "void __cdecl
__CxxCallUnwindDtor(void (__thiscall*)(void *),void *)"
(?__CxxCallUnwindDtor@@$$J0YAXP6EXPAX@Z0@Z)
If I disable exception handling for the compiler (remove /EHsc) then the
assembly is created.
Is exception handling not allowed with inheritance in C++ ?
I'm looking for this issue over a week and found no solution.
Does nobody else run in this linker error ???
Here is the simplest example code:
#pragma once
using namespace System;
namespace Test
{
public __gc class Base
{
public:
Base(void){}
~Base(void){}
};
public __gc class Derived : public Base
{
public:
Derived(void){}
~Derived(void){}
};
}
I have created a Visual C++ class library (.net assembly) project with two
classes
named Base and Derived where Derived inherits from Base.
During link I get the following linker error:
Test.obj : error LNK2001: Unresolved external symbol "void __cdecl
__CxxCallUnwindDtor(void (__thiscall*)(void *),void *)"
(?__CxxCallUnwindDtor@@$$J0YAXP6EXPAX@Z0@Z)
If I disable exception handling for the compiler (remove /EHsc) then the
assembly is created.
Is exception handling not allowed with inheritance in C++ ?
I'm looking for this issue over a week and found no solution.
Does nobody else run in this linker error ???
Here is the simplest example code:
#pragma once
using namespace System;
namespace Test
{
public __gc class Base
{
public:
Base(void){}
~Base(void){}
};
public __gc class Derived : public Base
{
public:
Derived(void){}
~Derived(void){}
};
}