Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error in COmpilation of VC++ Code

Error in COmpilation of VC++ Code

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RaajaOfSelf
    wrote on last edited by
    #1

    Hello Ima developing a VC++ applictaion .When i try to build a applicatin that is statically linked to MFC ,it throws me this error error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmt.lib(typinfo.obj) Can somebody help me how to fix this error ?:) Cause is my effort; Effect is God's effort

    F 1 Reply Last reply
    0
    • R RaajaOfSelf

      Hello Ima developing a VC++ applictaion .When i try to build a applicatin that is statically linked to MFC ,it throws me this error error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmt.lib(typinfo.obj) Can somebody help me how to fix this error ?:) Cause is my effort; Effect is God's effort

      F Offline
      F Offline
      Francois Gasnier
      wrote on last edited by
      #2

      You will probably have to change your link options in the project settings. I can remember there is a /NODEFAULTLIB keyword that you can set in order to avoid linking with duplicate implementation. Also, you might search for your error code in the help index which will tell you a lot...

      R 1 Reply Last reply
      0
      • F Francois Gasnier

        You will probably have to change your link options in the project settings. I can remember there is a /NODEFAULTLIB keyword that you can set in order to avoid linking with duplicate implementation. Also, you might search for your error code in the help index which will tell you a lot...

        R Offline
        R Offline
        Rajesh match
        wrote on last edited by
        #3

        i think u r using single thread run time library in project settings

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups