?
Solved

Error LNK2005

Posted on 2006-10-20
2
Medium Priority
?
1,936 Views
Last Modified: 2008-01-09
Need help resolving these compiling errors.  They all seem to be from the same library.

Error      9      fatal error LNK1169: one or more multiply defined symbols found      c:\Projects\UnityExtProperty\Debug\UnityExtProperty.dll      1
Error      1      error LNK2005: _DllMain@12 already defined in basesnap.obj      uafxcwd.lib
Error      5      error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMTD.lib(delete2.obj)      uafxcwd.lib
Error      7      error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in basesnap.obj      uafxcwd.lib
Error      3      error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)      uafxcwd.lib
Error      8      error LNK2005: "void * __cdecl operator new[](unsigned int,int,char const *,int)" (??_U@YAPAXIHPBDH@Z) already defined in LIBCMTD.lib(dbgnew.obj)      uafxcwd.lib
Error      4      error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in LIBCMTD.lib(new2.obj)      uafxcwd.lib
Error      6      error LNK2005: "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z) already defined in LIBCMTD.lib(dbgnew.obj)      uafxcwd.lib
Error      2      error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)      uafxcwd.lib




--
Thanks.
0
Comment
Question by:lapucca
[X]
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
  • 2
2 Comments
 
LVL 5

Expert Comment

by:NickGeorghiou
ID: 17778496
Again I think you might be trying to link libraries that are built with multi-threaded option to libraries with single-thread option...
0
 
LVL 5

Accepted Solution

by:
NickGeorghiou earned 1500 total points
ID: 17778544
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
  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 difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.
Suggested Courses

752 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