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. Link Problem...

Link Problem...

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebugging
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.
  • D Offline
    D Offline
    DSPCottage
    wrote on last edited by
    #1

    Dear all I have one visual C++ 6.00 MFC dll project. It contains both C and C++ files. Every time I open the project and make it clean and ther rebuild all it, following errors occures. Linking... mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored Creating library Debug/ecpdll.lib and object Debug/ecpdll.exp Debug/ecpdll.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... ecpdll.dll - 2 error(s), 1 warning(s) When I delete the C file and the header file of it and then re add them to the project this error removes but this style is not good. May u please help me. Regards Tappe

    S 1 Reply Last reply
    0
    • D DSPCottage

      Dear all I have one visual C++ 6.00 MFC dll project. It contains both C and C++ files. Every time I open the project and make it clean and ther rebuild all it, following errors occures. Linking... mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored Creating library Debug/ecpdll.lib and object Debug/ecpdll.exp Debug/ecpdll.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... ecpdll.dll - 2 error(s), 1 warning(s) When I delete the C file and the header file of it and then re add them to the project this error removes but this style is not good. May u please help me. Regards Tappe

      S Offline
      S Offline
      ShilpiP
      wrote on last edited by
      #2

      Solution ->[^]

      Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

      K 1 Reply Last reply
      0
      • S ShilpiP

        Solution ->[^]

        Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

        K Offline
        K Offline
        kingori
        wrote on last edited by
        #3

        hi try this in project settings, select using MFC dlls in one of the combo boxes.

        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