Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

linking thread error with VC++ 6

Posted on 2000-03-10
2
217 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

829 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