473,732 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler errors with MSVC 2005

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 ___CxxCallUnwin dDtor(void (__clrcall*)(vo id
*),void *)" (?___CxxCallUnw indDtor@@$$J0YM XP6MXPAX@Z0@Z) referenced in
function "int __stdcall ATL::CompareStr ingWFake(unsign ed long,unsigned
long,wchar_t const *,int,wchar_t const *,int)"
(?CompareString WFake@ATL@@$$FY GHKKPB_WH0H@Z)

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

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.

--
Bruce R.

Nov 17 '05 #1
2 1647
brckcc wrote:
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 ___CxxCallUnwin dDtor(void (__clrcall*)(vo id
*),void *)" (?___CxxCallUnw indDtor@@$$J0YM XP6MXPAX@Z0@Z) referenced in
function "int __stdcall ATL::CompareStr ingWFake(unsign ed long,unsigned
long,wchar_t const *,int,wchar_t const *,int)"
(?CompareString WFake@ATL@@$$FY GHKKPB_WH0H@Z)

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

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
Nov 17 '05 #2
Hi Bruce,

How are the things going, does MVP Carl's suggestion hit your problem?
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1985
by: Michael T Decerbo | last post by:
The code below compiles without warnings or errors under g++ 3.2.1 on Solaris, gcc 3.2.2 on Linux, and MSVC 6.0 on Windows. Under g++ (GCC) 3.3.2, it produces the following errors: % g++ -Wall testme_std.cpp testme_std.cpp:24: error: no `I LblID<I, MaxInd>::add(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' member function declared in class `LblID<I, MaxInd>' testme_std.cpp:24: error: template...
8
1899
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting much interest. But it's driving me nuts. Here's what happens. I'm working on a multi project VB app. happily writing nice inoffensive code - go to compile and the compiler tells me there's a problem in a project I'm not working on. But really...
4
2199
by: Jeremy Watts | last post by:
Hi, I'm completely new to C++ and wondered if anyone has a recommendation for a C++ compiler Thanks
16
2853
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...) Oh, I forgot to list the error messages; I would be delighted if someone could explain how to deduce which line number in which file is the one that the VC compiler cannot handle. Actually I'm using C#, but the only post I could find about...
6
1553
by: Russ | last post by:
This really is the worst Microsoft product I have ever had the misfortune to work with. After the excellent feattures and stability of VS.NET 2002 and 2003, I was confident enough to start a major project in beta 2 of VS 2005. But as I began to use the Beta I had major concerns about the product and every subsequent CTP and the RC did nothing to put ease my concerns. I even took out an MSDN universal subscription so I could begin using...
2
2122
by: Peted | last post by:
Hi, im moving a project from vs2005 to vs 2008. is doing so i have come across a compiler error regarding partial classes that i dont understand if anyone can explain it to me please the orig defintion that compiles and runs fine in vs2005 is bellow......
87
3335
by: rufus | last post by:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
3
2026
by: Unknownmat | last post by:
Here is the smallest code I could come up with to reproduce the I was able to reproduce the warning with an even smaller snippet of code: #include <vector> #include <functional> #include <boost/function.hpp> int main()
159
7087
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
8944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9445
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9180
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6733
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.