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. How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005)

How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005)

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helptutorialannouncement
4 Posts 2 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.
  • S Offline
    S Offline
    SIJUTHOMASP
    wrote on last edited by
    #1

    I have upgraded a project written in VC++ 7.1 version using the .net 2005 wizard. After fixing few code related issues, I have got the following errors while building error LNK2001: unresolved external symbol DllCanUnloadNow error LNK2001: unresolved external symbol DllGetClassObject I have declared this in the .def file as DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE I would really appreciate for showing me the right way to resolve this please. Thanks in advance.

    SoftwareDeveloper(.NET)

    K 1 Reply Last reply
    0
    • S SIJUTHOMASP

      I have upgraded a project written in VC++ 7.1 version using the .net 2005 wizard. After fixing few code related issues, I have got the following errors while building error LNK2001: unresolved external symbol DllCanUnloadNow error LNK2001: unresolved external symbol DllGetClassObject I have declared this in the .def file as DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE I would really appreciate for showing me the right way to resolve this please. Thanks in advance.

      SoftwareDeveloper(.NET)

      K Offline
      K Offline
      ky_rerun
      wrote on last edited by
      #2

      did you switch a dll from being a com DLL to a managed DLL?


      a programmer traped in a thugs body

      S 1 Reply Last reply
      0
      • K ky_rerun

        did you switch a dll from being a com DLL to a managed DLL?


        a programmer traped in a thugs body

        S Offline
        S Offline
        SIJUTHOMASP
        wrote on last edited by
        #3

        Few libraries actually was written in vc 6 and using those with that..but it has been upgraded to vc 7 .. Thanks

        SoftwareDeveloper(.NET)

        S 1 Reply Last reply
        0
        • S SIJUTHOMASP

          Few libraries actually was written in vc 6 and using those with that..but it has been upgraded to vc 7 .. Thanks

          SoftwareDeveloper(.NET)

          S Offline
          S Offline
          SIJUTHOMASP
          wrote on last edited by
          #4

          Finaly I could resolve the issue. I have done the following steps to resolve the issue. 1) Have set "Multi-Threaded Debug(/MTD" in all the projects under workspace. this thing was correct already but mentioning here for future reference. 2) In the Resources-->Preprocessor Definitions , I have set "_DEBUG,_MT,DLL". I believe this part , corrected the issue. previously it was having only "_DEBUG". Thanks,.. :-D

          SoftwareDeveloper(.NET)

          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