Symbols already defined (MSVCRTD.DLL)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Symbols already defined (MSVCRTD.DLL)

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    9

    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

  2. #2
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,051

    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.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center