Solved

Error LNK2005

Posted on 2006-10-20
2
1,920 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

821 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