Solved

linking thread error with VC++ 6

Posted on 2000-03-10
2
214 Views
Last Modified: 2010-04-02
I hope someone can answer that question, i'm testing threads on a application, I used CWinThread objects ,and i keep getting these errors at the linkage:

nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)

nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)

Debug/radio.exe : fatal error LNK1169: one or more multiply defined symbols found

I searched a bit by myself and I think there is a definition of __cdecl but I don't know how to resolve this error, so please, if someone can help, it is capital that I find a way to make this app a multithreading one....

O! and if anyone has a specific library to suggest, who is simple, just tell me. And please, don't get too technical in your help.... i'm a developper fresh from college....thanks!!
0
Comment
Question by:David MacDonald
2 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 20 total points
ID: 2605240
In "C++" tab of "Settings" dialog in category "Code Generatoin" check that you have "Multithreaded" in "use runtime library" combobox
0
 
LVL 1

Author Comment

by:David MacDonald
ID: 2616036
Thanks...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now