error LNK2019
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: error LNK2019

  1. #1
    Join Date
    Jun 2011
    Posts
    2

    Unhappy error LNK2019

    Hello.
    I created win32 console application in vs2008. Could you provide me more information about the error and fix it. I searched MSDN, but still can't understand it.

    Output:

    13>------ Build started: Project: extract, Configuration: Debug Win32 ------
    13>Compiling...
    13>attachments.cpp
    13>chapters.cpp
    13>cuesheets.cpp
    13>extract_cli_parser.cpp
    13>mkvextract.cpp
    13>options.cpp
    13>tags.cpp
    13>timecodes_v2.cpp
    13>track_spec.cpp
    13>tracks.cpp
    13>xtr_aac.cpp
    13>xtr_avc.cpp
    13>xtr_avi.cpp
    13>.\xtr_avi.cpp(20) : warning C4005: 'PACKAGE' : macro redefinition
    13> c:\Documents and Settings\Tran Dinh Tu\Desktop\AudioProcessingUI\config.h(4) : see previous definition of 'PACKAGE'
    13>.\xtr_avi.cpp(21) : warning C4005: 'VERSION' : macro redefinition
    13> c:\Documents and Settings\Tran Dinh Tu\Desktop\AudioProcessingUI\config.h(5) : see previous definition of 'VERSION'
    13>xtr_base.cpp
    13>xtr_cpic.cpp
    13>xtr_ivf.cpp
    13>xtr_mpeg1_2.cpp
    13>xtr_ogg.cpp
    13>xtr_pgs.cpp
    13>xtr_rmff.cpp
    13>Generating Code...
    13>Compiling...
    13>xtr_textsubs.cpp
    13>xtr_tta.cpp
    13>xtr_vobsub.cpp
    13>xtr_wav.cpp
    13>Generating Code...
    13>Linking...
    13>chapters.obj : error LNK2019: unresolved external symbol "void __cdecl write_chapters_simple(int &,class libmatroska::KaxChapters *,class mm_io_c *)" (?write_chapters_simple@@YAXAAHPAVKaxChapters@libmatroska@@PAVmm_io_c@@@Z) referenced in function __catch$?extract_chapters@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NW4parse_mode_e@kax_analyzer_c@@@Z$0
    13>chapters.obj : error LNK2019: unresolved external symbol "void __cdecl write_chapters_xml(class libmatroska::KaxChapters *,class mm_io_c *)" (?write_chapters_xml@@YAXPAVKaxChapters@libmatroska@@PAVmm_io_c@@@Z) referenced in function __catch$?extract_chapters@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NW4parse_mode_e@kax_analyzer_c@@@Z$0
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _inflateEnd referenced in function "public: virtual void __thiscall zlib_compressor_c::decompress(class counted_ptr<class memory_c> &)" (?decompress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _inflate referenced in function "public: virtual void __thiscall zlib_compressor_c::decompress(class counted_ptr<class memory_c> &)" (?decompress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _inflateInit_ referenced in function "public: virtual void __thiscall zlib_compressor_c::decompress(class counted_ptr<class memory_c> &)" (?decompress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: virtual void __thiscall zlib_compressor_c::compress(class counted_ptr<class memory_c> &)" (?compress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _deflate referenced in function "public: virtual void __thiscall zlib_compressor_c::compress(class counted_ptr<class memory_c> &)" (?compress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(compression.obj) : error LNK2019: unresolved external symbol _deflateInit_ referenced in function "public: virtual void __thiscall zlib_compressor_c::compress(class counted_ptr<class memory_c> &)" (?compress@zlib_compressor_c@@UAEXAAV?$counted_ptr@Vmemory_c@@@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_GetCurrentLineNumber referenced in function "void __cdecl xmlp_error(struct parser_data_t *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?xmlp_error@@YAXPAUparser_data_t@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_GetCurrentColumnNumber referenced in function "void __cdecl xmlp_error(struct parser_data_t *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?xmlp_error@@YAXPAUparser_data_t@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_ParserFree referenced in function __catch$?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z$0
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_ErrorString referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_GetErrorCode referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_Parse referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_SetCharacterDataHandler referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_SetElementHandler referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_SetUserData referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>common.lib(element_parser.obj) : error LNK2019: unresolved external symbol __imp__XML_ParserCreate referenced in function "class libebml::EbmlMaster * __cdecl parse_xml_elements(char const *,struct parser_element_t const *,class mm_text_io_c *)" (?parse_xml_elements@@YAPAVEbmlMaster@libebml@@PBDPBUparser_element_t@@PAVmm_text_io_c@@@Z)
    13>C:\Documents and Settings\Tran Dinh Tu\Desktop\AudioProcessingUI\Debug\mkvextract.exe : fatal error LNK1120: 18 unresolved externals
    13>Build log was saved at "file://C:\Documents and Settings\Tran Dinh Tu\Desktop\AudioProcessingUI\Debug\extract\BuildLog.htm"
    13>extract - 19 error(s), 2 warning(s)
    ========== Build: 12 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

  3. #3
    Join Date
    Jun 2011
    Posts
    2

    Re: error LNK2019

    These .lib are include in my project. Make sure I am linking it in: Configuration Properties -> Linker -> Input -> Additional Dependencies.
    And I use extern "C" in the definition while #include header but can not solve problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center