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. Linking error if project compile in vc8

Linking error if project compile in vc8

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestionannouncement
3 Posts 3 Posters 1 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
    singh_nav
    wrote on last edited by
    #1

    hi All , I have a project which is depend upon another project . Now i am using the function of another project's .h file into my main project file . If i compile it on VC6 then there is no any type error but if i use VC8 compiler then it is showing following linking error I have the proper decleration and defination of these function How to come out this problem ProgressPage.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ZipUnzip::~ZipUnzip(void)" (??1ZipUnzip@@UAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: unsigned char __thiscall ZipUnzip::RestoreFilesFromZipArchive(class ATL::CStringT > >,class ATL::CStringT > >,class ATL::CStringT > >)" (?RestoreFilesFromZipArchive@ZipUnzip@@QAEEV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@00@Z) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: __thiscall ZipUnzip::ZipUnzip(void)" (??0ZipUnzip@@QAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) .\Release/RebuilderWizard.exe : fatal error LNK1120: 3 unresolved externals Regards Navdeep

    J H 2 Replies Last reply
    0
    • S singh_nav

      hi All , I have a project which is depend upon another project . Now i am using the function of another project's .h file into my main project file . If i compile it on VC6 then there is no any type error but if i use VC8 compiler then it is showing following linking error I have the proper decleration and defination of these function How to come out this problem ProgressPage.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ZipUnzip::~ZipUnzip(void)" (??1ZipUnzip@@UAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: unsigned char __thiscall ZipUnzip::RestoreFilesFromZipArchive(class ATL::CStringT > >,class ATL::CStringT > >,class ATL::CStringT > >)" (?RestoreFilesFromZipArchive@ZipUnzip@@QAEEV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@00@Z) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: __thiscall ZipUnzip::ZipUnzip(void)" (??0ZipUnzip@@QAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) .\Release/RebuilderWizard.exe : fatal error LNK1120: 3 unresolved externals Regards Navdeep

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      It appears that you are pulling in the header for the ZipUnzip class, but not its implementation.  You either need to add the .CPP file(s) to your project, or the library that contains the implementation.    Peace!

      -=- James


      If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      DeleteFXPFiles & CheckFavorites (Please rate this post!)

      1 Reply Last reply
      0
      • S singh_nav

        hi All , I have a project which is depend upon another project . Now i am using the function of another project's .h file into my main project file . If i compile it on VC6 then there is no any type error but if i use VC8 compiler then it is showing following linking error I have the proper decleration and defination of these function How to come out this problem ProgressPage.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ZipUnzip::~ZipUnzip(void)" (??1ZipUnzip@@UAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: unsigned char __thiscall ZipUnzip::RestoreFilesFromZipArchive(class ATL::CStringT > >,class ATL::CStringT > >,class ATL::CStringT > >)" (?RestoreFilesFromZipArchive@ZipUnzip@@QAEEV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@00@Z) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) ProgressPage.obj : error LNK2019: unresolved external symbol "public: __thiscall ZipUnzip::ZipUnzip(void)" (??0ZipUnzip@@QAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z) .\Release/RebuilderWizard.exe : fatal error LNK1120: 3 unresolved externals Regards Navdeep

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        I think you need to add library to your program


        WhiteSky


        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