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. LNK2001 in MFC Extension DLL's

LNK2001 in MFC Extension DLL's

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
2 Posts 2 Posters 2 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.
  • H Offline
    H Offline
    Hans Peter Warter
    wrote on last edited by
    #1

    Hello! I got a strange linker error (EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "public: static struct CRuntimeClass const CEFListCtrl::classCEFListCtrl" (?classCEFListCtrl@CEFListCtrl@@2UCRuntimeClass@@B) and EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "protected: static struct AFX_MSGMAP const CEFListCtrl::messageMap" (?messageMap@CEFListCtrl@@1UAFX_MSGMAP@@B)) The error only occur on following circumstances: CEFListCtrl exists in MFC_Extension-DLL_A CEFDBListCtrl exists in MFC_Extension-DLL_B (CEFDBListCtrl inherits from CEFListCtrl) When putting CEFDBListCtrl out from DDL_B into the EXE-Module everthing works fine. I think the project settings are OK (linking with lib's..) there are no unresolved externals for other functions of CEFListCtrl.

    G 1 Reply Last reply
    0
    • H Hans Peter Warter

      Hello! I got a strange linker error (EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "public: static struct CRuntimeClass const CEFListCtrl::classCEFListCtrl" (?classCEFListCtrl@CEFListCtrl@@2UCRuntimeClass@@B) and EFDBListCtrl.obj : error LNK2001: Unresolved external Symbol "protected: static struct AFX_MSGMAP const CEFListCtrl::messageMap" (?messageMap@CEFListCtrl@@1UAFX_MSGMAP@@B)) The error only occur on following circumstances: CEFListCtrl exists in MFC_Extension-DLL_A CEFDBListCtrl exists in MFC_Extension-DLL_B (CEFDBListCtrl inherits from CEFListCtrl) When putting CEFDBListCtrl out from DDL_B into the EXE-Module everthing works fine. I think the project settings are OK (linking with lib's..) there are no unresolved externals for other functions of CEFListCtrl.

      G Offline
      G Offline
      GBO
      wrote on last edited by
      #2

      Well, First check if you are exporting and importing OK. http://support.microsoft.com/support/kb/articles/Q128/1/99.asp Concerning a possible MFC bug take a look at http://support.microsoft.com/support/kb/articles/Q152/2/54.asp

      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