Dear LibXml community, I'm having issues compiling the LIBXML (libxml2-2.7.8.win32) with GCC compiler. I've linked libxml2_a_dll.lib library and the appropriate header files in my project but getting these errors:
####################################################################################### ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ||Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\valid.obj):..\valid.c: (.text[_xmlValidBuildContentModel]+0x6)||undefined reference to `_chkstk'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\valid.obj):..\valid.c: (.text[_xmlValidateElementContent]+0x6)||undefined reference to `_chkstk'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c:(.data+0xec)||undefined reference to `gzopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlWrapGzOpenUtf8]+0xf)||undefined reference to `gzopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlWrapGzOpenUtf8]+0x6b)||undefined reference to `gzdopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlInitPlatformSpecificIo]+0x75)||undefined reference to `gzopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlGzfileOpen_real]+0x25)||undefined reference to `gzdopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlGzfileOpenW]+0x42)||undefined reference to `gzdopen'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlGzfileRead]+0x11)||undefined reference to `gzread'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlGzfileWrite]+0x11)||undefined reference to `gzwrite'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlGzfileClose]+0x7)||undefined reference to `gzclose'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlFreeZMemBuff]+0x13)||undefined reference to `deflateEnd'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlCreateZMemBuff]+0xa8)||undefined reference to `deflateInit2_'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlCreateZMemBuff]+0x102)||undefined reference to `crc32'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlZMemBuffAppend]+0x52)||undefined reference to `deflate'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlZMemBuffAppend]+0x6b)||undefined reference to `crc32'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlZMemBuffGetContent]+0x34)||undefined reference to `deflate'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[___xmlParserInputBufferCreateFilename]+0xad)||undefined reference to `gzdirect'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xmlIO.obj):..\xmlIO.c: (.text[_xmlFreeHTTPWriteCtxt]+0x2d)||undefined reference to `deflateEnd'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlIconvWrapper]+0x59)||undefined reference to `libiconv'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlCharEncCloseFunc]+0x2b)||undefined reference to `libiconv_close'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlCharEncCloseFunc]+0x49)||undefined reference to `libiconv_close'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlByteConsumed]+0x6)||undefined reference to `_chkstk'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0xd2)||undefined reference to `libiconv_open'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0xdf)||undefined reference to `libiconv_open'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0xf8)||undefined reference to `libiconv_open'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0x111)||undefined reference to `libiconv_open'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0x137)||undefined reference to `libiconv_close'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\encoding.obj):..\encoding.c: (.text[_xmlFindCharEncodingHandler]+0x13d)||undefined reference to `libiconv_close'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xpath.obj):..\xpath.c: (.text[_xmlXPathFormatNumber]+0xa4)||undefined reference to `_ftol2'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xpath.obj):..\xpath.c: (.text[_xmlXPathFormatNumber]+0x1a4)||undefined reference to `_ftol2'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xpath.obj):..\xpath.c: (.text[_xmlXPathIsPositionalPredicate]+0x3c)||undefined reference to `_ftol2'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xpath.obj):..\xpath.c: (.text[_xmlXPathFloorFunction]+0x6a)||undefined reference to `_ftol2'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\xpath.obj):..\xpath.c: (.text[_xmlXPathCeilingFunction]+0x6e)||undefined reference to `_ftol2'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_socket_errno]+0x2)||undefined reference to `_imp__WSAGetLastError@0'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPCleanup]+0x28)||undefined reference to `_imp__WSACleanup@0'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPFreeCtxt]+0xcb)||undefined reference to `inflateEnd'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPFreeCtxt]+0xee)||undefined reference to `_imp__closesocket@4'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPSend]+0x36)||undefined reference to `_imp__send@16'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPSend]+0x67)||undefined reference to `_imp__WSAGetLastError@0'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPSend]+0x72)||undefined reference to `_imp__WSAGetLastError@0'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPSend]+0xb0)||undefined reference to `_imp__select@20'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPRecv]+0xe9)||undefined reference to `_imp__recv@16'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPRecv]+0x105)||undefined reference to `_imp__WSAGetLastError@0'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPRecv]+0x164)||undefined reference to `_imp__select@20'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPReadLine]+0x6)||undefined reference to `_chkstk'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPScanAnswer]+0x449)||undefined reference to `inflateInit2_'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPConnectAttempt]+0xf)||undefined reference to `_imp__socket@12'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPConnectAttempt]+0x4a)||undefined reference to `_imp__ioctlsocket@12'| ..\..\IBM_Laptop\Borland\XML\LIBXML2\libxml2-2.7.8.win32\libxml2-2.7.8.win32\lib\libxml2_a_dll.lib(int.a.dll.msvc\nanohttp.obj):..\nanohttp.c: (.text[_xmlNanoHTTPConnectAttempt]+0x68)||undefined reference to `_imp__connect@12'| ||More errors follow but not being shown.| ||Edit the max errors limit in compiler options...| ||=== Build finished: 50 errors, 36 warnings (0 minutes, 2 seconds) ===| ####################################################################################### Can someone please help with troubleshooting the compiler errors. I'm using the mingw32-g++ compiler. Thanks in advance --Maz _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml