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 issue with VS 2005

Link issue with VS 2005

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++visual-studioquestion
2 Posts 1 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.
  • K Offline
    K Offline
    ky_rerun
    wrote on last edited by
    #1

    I have a project that was a MFC ccmdtarget app in vs 6 we are moving it to vs 2005 but I get link errors. utoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass const CCmdTarget::classCCmdTarget" (?classCCmdTarget@CCmdTarget@@2UCRuntimeClass@@B) referenced in function "protected: static struct CRuntimeClass * __stdcall AutoEngine::_GetBaseClass(void)" (?_GetBaseClass@AutoEngine@@KGPAUCRuntimeClass@@XZ) AutoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall AutoEngine::GetThisClass(void)" (?GetThisClass@AutoEngine@@SGPAUCRuntimeClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static class COleObjectFactory AutoEngine::factory''(void)" (??__E?factory@AutoEngine@@2VCOleObjectFactory@@A@@YAXXZ) I know this has somthing to do with the way I am linking to MFC, but I have tried to ensure that I am only linking to the mfc 8.0 library only.


    a programmer traped in a thugs body

    K 1 Reply Last reply
    0
    • K ky_rerun

      I have a project that was a MFC ccmdtarget app in vs 6 we are moving it to vs 2005 but I get link errors. utoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass const CCmdTarget::classCCmdTarget" (?classCCmdTarget@CCmdTarget@@2UCRuntimeClass@@B) referenced in function "protected: static struct CRuntimeClass * __stdcall AutoEngine::_GetBaseClass(void)" (?_GetBaseClass@AutoEngine@@KGPAUCRuntimeClass@@XZ) AutoEngine.obj : error LNK2019: unresolved external symbol "public: static struct CRuntimeClass * __stdcall AutoEngine::GetThisClass(void)" (?GetThisClass@AutoEngine@@SGPAUCRuntimeClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static class COleObjectFactory AutoEngine::factory''(void)" (??__E?factory@AutoEngine@@2VCOleObjectFactory@@A@@YAXXZ) I know this has somthing to do with the way I am linking to MFC, but I have tried to ensure that I am only linking to the mfc 8.0 library only.


      a programmer traped in a thugs body

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

      Just a litlle more info AutoEngine is my class. Also I have both VS 6 and .net on my comp. I have assured that all projects that we are dependant with link to the right mfc library.


      a programmer traped in a thugs body

      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