Compiler errors with MSVC 2005

G

Guest

I've got a managed extension library that I'm attempting to convert from MSVC
2003 to MSVC 2005.

I've converted the project file and am now attempting to compile the
application.

I get multiple occurrences of the following linker errors:

extern "C" void __clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void
*),void *)" (?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in
function "int __stdcall ATL::CompareStringWFake(unsigned long,unsigned
long,wchar_t const *,int,wchar_t const *,int)"
(?CompareStringWFake@ATL@@$$FYGHKKPB_WH0H@Z)

Stdafx.obj : error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ)

What do I need to change to get rid of these? I've removed the catch (...),
since I saw somewhere else that that might be the problem, but to no avail.
 
C

Carl Daniel [VC++ MVP]

brckcc said:
I've got a managed extension library that I'm attempting to convert
from MSVC 2003 to MSVC 2005.

I've converted the project file and am now attempting to compile the
application.

I get multiple occurrences of the following linker errors:

extern "C" void __clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void
*),void *)" (?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in
function "int __stdcall ATL::CompareStringWFake(unsigned long,unsigned
long,wchar_t const *,int,wchar_t const *,int)"
(?CompareStringWFake@ATL@@$$FYGHKKPB_WH0H@Z)

Stdafx.obj : error LNK2001: unresolved external symbol
"?.cctor@@$$FYMXXZ" (?.cctor@@$$FYMXXZ)

What do I need to change to get rid of these? I've removed the catch
(...), since I saw somewhere else that that might be the problem, but
to no avail.

Make sure that you're not trying to do something like link VC8-compiled
code with the VC7.1 runtime libraries.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top