Hi all,
I am trying to compile a VC++ project and it is win32 console application.Whe n I try to compile it I get a lot of linking problems.I have included all the header files needed for the project..I have no idea of how to solve them as I am little bit new to vc++..Could anyone advice or tell me whats wrong in my program..Here are some of my errors:
(1) error LNK2019: unresolved external symbol "public: __thiscall Parser::Parser( class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,unsigned short,unsigned short,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >)" (??0Parser@@QAE @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d@@0000GG00000@ Z) referenced in function _main homogenity.obj
(2)error LNK2019: unresolved external symbol "public: void __thiscall Parser::usage(b ool)const " (?usage@Parser@ @QBEX_N@Z) referenced in function _main homogenity.obj
(3) error LNK2019: unresolved external symbol "public: static void __cdecl GM::close(void) " (?close@GM@@SAX XZ) referenced in function _main homogenity.obj
Thanks a lot in advance.
PS: Here's my Build Log file in case required
Build Log Build started: Project: homogenity, Configuration: Debug|Win32
Command Lines Creating temporary file "d:\ReconAssign ments\homogenit y\homogenity\De bug\RSP00000333 684676.rsp" with contents
[
/OUT:"D:\ReconAs signments\homog enity\Debug\hom ogenity.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"D ebug\homogenity .exe.intermedia te.manifest" /DEBUG /PDB:"d:\ReconAs signments\homog enity\debug\hom ogenity.pdb" /SUBSYSTEM:CONSO LE /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\homoge nity.obj"
".\Debug\stdafx .obj"
".\Debug\homoge nity.res"
".\Debug\homoge nity.exe.embed. manifest.res"
]
Creating command line "link.exe @d:\ReconAssign ments\homogenit y\homogenity\De bug\RSP00000333 684676.rsp /NOLOGO /ERRORREPORT:PRO MPT"
Output Window Linking...
homogenity.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Parser::parse(i nt,char * *)" (?parse@Parser@ @QAE_NHPAPAD@Z) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: static void __cdecl GM::close(void) " (?close@GM@@SAX XZ) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: void __thiscall Parser::usage(b ool)const " (?usage@Parser@ @QBEX_N@Z) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: __thiscall Parser::Parser( class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,unsigned short,unsigned short,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >)" (??0Parser@@QAE @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d@@0000GG00000@ Z) referenced in function _main
D:\ReconAssignm ents\homogenity \Debug\homogeni ty.exe : fatal error LNK1120: 4 unresolved externals
Results Build log was saved at "file://d:\ReconAssignm ents\homogenity \homogenity\Deb ug\BuildLog.htm "
homogenity - 5 error(s), 0 warning(s)
I am trying to compile a VC++ project and it is win32 console application.Whe n I try to compile it I get a lot of linking problems.I have included all the header files needed for the project..I have no idea of how to solve them as I am little bit new to vc++..Could anyone advice or tell me whats wrong in my program..Here are some of my errors:
(1) error LNK2019: unresolved external symbol "public: __thiscall Parser::Parser( class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,unsigned short,unsigned short,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >,class std::basic_stri ng<char,struct std::char_trait s<char>,class std::allocator< char> >)" (??0Parser@@QAE @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d@@0000GG00000@ Z) referenced in function _main homogenity.obj
(2)error LNK2019: unresolved external symbol "public: void __thiscall Parser::usage(b ool)const " (?usage@Parser@ @QBEX_N@Z) referenced in function _main homogenity.obj
(3) error LNK2019: unresolved external symbol "public: static void __cdecl GM::close(void) " (?close@GM@@SAX XZ) referenced in function _main homogenity.obj
Thanks a lot in advance.
PS: Here's my Build Log file in case required
Build Log Build started: Project: homogenity, Configuration: Debug|Win32
Command Lines Creating temporary file "d:\ReconAssign ments\homogenit y\homogenity\De bug\RSP00000333 684676.rsp" with contents
[
/OUT:"D:\ReconAs signments\homog enity\Debug\hom ogenity.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"D ebug\homogenity .exe.intermedia te.manifest" /DEBUG /PDB:"d:\ReconAs signments\homog enity\debug\hom ogenity.pdb" /SUBSYSTEM:CONSO LE /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\homoge nity.obj"
".\Debug\stdafx .obj"
".\Debug\homoge nity.res"
".\Debug\homoge nity.exe.embed. manifest.res"
]
Creating command line "link.exe @d:\ReconAssign ments\homogenit y\homogenity\De bug\RSP00000333 684676.rsp /NOLOGO /ERRORREPORT:PRO MPT"
Output Window Linking...
homogenity.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Parser::parse(i nt,char * *)" (?parse@Parser@ @QAE_NHPAPAD@Z) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: static void __cdecl GM::close(void) " (?close@GM@@SAX XZ) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: void __thiscall Parser::usage(b ool)const " (?usage@Parser@ @QBEX_N@Z) referenced in function _main
homogenity.obj : error LNK2019: unresolved external symbol "public: __thiscall Parser::Parser( class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,unsigned short,unsigned short,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >,class std::basic_stri ng,class std::allocator >)" (??0Parser@@QAE @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d@@0000GG00000@ Z) referenced in function _main
D:\ReconAssignm ents\homogenity \Debug\homogeni ty.exe : fatal error LNK1120: 4 unresolved externals
Results Build log was saved at "file://d:\ReconAssignm ents\homogenity \homogenity\Deb ug\BuildLog.htm "
homogenity - 5 error(s), 0 warning(s)
Comment