Black Locust Software

Technology Solutions for Business

Visual C++ .NET: Linker Error C2001

Unresolved external symbol "void __cdecl __CxxCallUnwindDtor

Here's a maddening error for you. Though experiencing it is probably what brought you here.

error LNK2001: Unresolved external symbol "void __cdecl __CxxCallUnwindDtor(void (__thiscall*)(void *),void *)"

Perhaps you are experiencing the problem here.

I was with code similar to Ralf's. The problem was the deconstructors. Both the base class and the derived class had empty deconstructors. I commented them out, and the thing linked.

In that thread, removing the exception handling seemed to solve the problem. For me, it did not. Until I commented out the destructors in BOTH the base & derived classes, I couldn't get rid of the problem.

The same code compiled & linked in a .Net DLL, but did not in a Windows Control Library project. Linker bug? I think so, but who's to say?

Hope this helps somebody.

dwilson