473,738 Members | 4,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Library compatibility using C with Visual C++ Express

I am currently trying to compile code which uses old C code with a C++
wrapper. It had compiled on earlier versions of software (within the
past two years), but Maya needs an updated version.
I think one source of the problems is that the C code relies on old
libraries. I tried changing <iostream.hto <iostreambut it
introduced a handful of errors in the C code which I am hoping to avoid
getting wrapped up in.

I get the following errors using Visual C++ 2005 Express Edition:

LIBCMTD.lib(std excpt.obj) : error LNK2005: "public: __thiscall
std::bad_cast:: bad_cast(char const *)" (??0bad_cast@st d@@QAE@PBD@Z)
already defined in handsimulatenod e.obj
LIBCMTD.lib(std excpt.obj) : error LNK2005: "public: __thiscall
std::bad_cast:: bad_cast(class std::bad_cast const &)"
(??0bad_cast@st d@@QAE@ABV01@@Z ) already defined in handsimulatenod e.obj
LIBCMTD.lib(std excpt.obj) : error LNK2005: "public: virtual __thiscall
std::bad_cast:: ~bad_cast(void) " (??1bad_cast@st d@@UAE@XZ) already
defined in handsimulatenod e.obj
LINK : fatal error LNK1104: cannot open file 'libcimtd.lib'

I am wondering if anyone else has already dealt with this problem.

Is the problem just a matter of linking to the debug library
'libcimtd.lib'? (There is no version for x86 but there is one for
AMD64, but it will take figuring out how to use it.)
Or is the root of the problem something else?

Thanks,
mido

Dec 5 '06 #1
1 2197
On 5 Dec 2006 07:42:47 -0800 in comp.lang.c++, "mido"
<mi************ @gmail.comwrote ,
>I think one source of the problems is that the C code relies on old
libraries. I tried changing <iostream.hto <iostreambut it
introduced a handful of errors in the C code which I am hoping to avoid
getting wrapped up in.
Of course actual C code cannot depend on <iostream.has that was always
C++ only. I predict that you will not be happy until you get away from
<iostream.han d on to <iostream>. If nothing else, they are so
incompatible that you cannot link them both in the same program.
>I get the following errors using Visual C++ 2005 Express Edition:

LIBCMTD.lib(st dexcpt.obj) : error LNK2005: "public: __thiscall
std::bad_cast: :bad_cast(char const *)" (??0bad_cast@st d@@QAE@PBD@Z)
already defined in handsimulatenod e.obj
Clutching at a straw, is there any chance that you did not recompile
handsimulatenod e.cpp with the new compiler?

Dec 5 '06 #2

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

Similar topics

16
2452
by: Randy Yates | last post by:
I have an Access database that has been running fine on multiple platforms (Windows 2000, Windows XP, etc.) for several years. Recently, the database has begun to issue "Run-Time Error 2467" on one XP platform when certain forms are opened. Other forms result in a total application crash with the resulting "Bug Report" dialog sequence. The same forms within the same application run fine under Win2000. I'm wondering if this is due to...
7
3898
by: TJ | last post by:
In C# how do you achieve pass-by-reference property declarations in the Type Library? I am writing a COM Class Library that must mimick an existing library for which the only information is the TypeLib. I'm using Visual Studio .NET 2003. The original library provides simple authentication services, from Access and MS-SQL OLEDB providers. The enhancement I'm creating provides support for ODBC and will be a drop-in replacement.
0
1420
by: Jonathan Wilson | last post by:
acording to http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=oMoJFXNlDHA.2624%40cpmsftngxa06.phx.gbl one "Ed Dore" said "The VC libraries team is looking at getting more of the sources out with future releases though." Can someone from Microsoft explain A.if this is happening or not and B.why the source code in question is not included in the first place Checking my Visual Studio .NET 2003 folder, I can see the following non-open...
14
1153
by: RDI | last post by:
I download a couple of controls that look VERY interesting--but they are for VB6. When I look through MSVS's help, all I can find on the subject tells that their is a compatiblity library and what it's purpose is. But can't seem to find anything on HOW to access it. Any ideas? TIA
3
1880
by: pb | last post by:
Is it possible to create a class library in visual web developer 2005 express edition and complie into a dll? If so how?
6
1720
by: Alaashamas | last post by:
Helo all i have a problem with visual studio 2003 and sql 2005 Express, is there any hotfix to manage the compatiblity i am haveing problems in data adapter when i want to create an sql dataabapter depending on sql Express table i have problems also the performance is much slower than when i use a 2000 sql server database than a 2005 express database. any suggestion please
0
895
by: rohitscripts | last post by:
I'm currently using "Visual Web Developer 2005 Express Edition". Now I want to use VSS(Visual Source Safe) or TFS(Team Foundation Server). But I came to know that express editions don't provide support for extra integration tools...and that I can use them as stand alone applications. Now, what my question is, which one (VSS or TFS)is better to work with? Whether I can Download them for free of cost? And which version(s) can i use...
0
1749
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location: http://people.apache.org/dist/incubator/stdcxx/releases/ For additional details see the stdcxx Download page: http://incubator.apache.org/stdcxx/download.html#releases The Apache C++ Standard Library is a full implementation of the C++ Standard Library...
3
1673
by: Med | last post by:
Hi, I use Visual C# Express 2005 and Visual Web Developer Express 2005. In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name: DataAccess) _ SystemLibrary (Namespace name: SystemLibrary) which they both build in their own "bin\Release\" folders.
0
8788
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
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
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
6751
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
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
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.