troubleshooting Question

Migrating MFC to Visual Studio .NET 2002 - linker errors!!!

Avatar of mslawi
mslawi asked on
Visual C++.NETMicrosoft Development
3 Comments1 Solution682 ViewsLast Modified:
Hi,

I am porting an MFC application to Visual C++ .Net (2002). I am starting out with unmanaged code (i.e., VC++7.0 minus the .net for now) This code consistes of several .libs and a few dll's and an exe.

The non-MFC code seems to port just fine. I have an MFC .dll that has linking problems. I am using the multithreaded DLL lib throughout and using MFC as a DLL. The linker problems I get are (for example; I get a bunch more than this):

CCcmChanState.obj : error LNK2019: unresolved external symbol "void __stdcall `eh vector constructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *),void (__thiscall*)(void *))" (??_L@YGXPAXIHP6EX0@Z1@Z) referenced in function "public: __thiscall ChanConfigStruct::ChanConfigStruct(void)" (??0ChanConfigStruct@@QAE@XZ)

CCcmChanState.obj : error LNK2019: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z) referenced in function "public: __thiscall ChanConfigStruct::~ChanConfigStruct(void)" (??1ChanConfigStruct@@QAE@XZ)

mfcs70.lib(stdafx.obj) : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z)

It seems like my code, CCcmChanState is calling something in MFC that uses (eh vector destructor iterator) and mfcs70.lib pulled in by stdafx wants to use it but can't find it.

What is missing from the link ? How do I fix it???

Thanks,

marion

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros