Solved

Error LNK2005

Posted on 2006-10-20
2
1,932 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 500 total points
ID: 17778544
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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