Linking error if project compile in vc8
-
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
-
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
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!) -
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
I think you need to add library to your program
WhiteSky