-
June 27th, 2014, 10:17 PM
#1
Symbols already defined (MSVCRTD.DLL)
Which adjustments in the compiler do I have to make in order to fix these errors?
Code:
Error 3 error LNK2005: __wassert already defined in LIBCMTD.lib(wassert.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(MSVCR100D.dll) Example 7.1
Error 4 error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(MSVCR100D.dll) Example 7.1
Error 5 error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(MSVCR100D.dll) Example 7.1
Error 6 error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(MSVCR100D.dll) Example 7.1
Error 7 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(ti_inst.obj) Example 7.1
Error 8 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj) E:\Character Animation With Direct3D\Chapter 7\Example 7.1\MSVCRTD.lib(ti_inst.obj) Example 7.1
Error 10 error LNK1169: one or more multiply defined symbols found E:\Character Animation With Direct3D\Chapter 7\Example 7.1\Example 7-1.exe 1 1 Example 7.1
Thanks
-
June 29th, 2014, 05:20 AM
#2
Re: Symbols already defined (MSVCRTD.DLL)
In the Project Property pages, go to Configuration Properties / Linker / Input, then add LIBCMTD.lib to Ignore Specific Default Libraries list.
See also /NODEFAULTLIB (Ignore Libraries) liker option.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|