New findings: Running dumpbin.exe on dumpbin.exe /exports lib\libxml2.lib
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file libxml2.lib File Type: LIBRARY Exports ordinal name ... _xmlMemUsed ... Summary C6 .debug$S 14 .idata$2 14 .idata$3 4 .idata$4 4 .idata$5 C .idata$6 Where as during compilation 'xmlMemUsed' is needed. C:\CPANTE~1\PERL51~1.0_6\site\bin\g++.exe -o blib\arch\auto\XML\LibXML\LibXML.dll -Wl,--base-file -Wl,dll.base -mdll -L"C:\CPANTesters\Perl5.16.0_64\lib\CORE" Av_CharPtrPtr.o Devel.o LibXML.o dom.o perl-libxml-mm.o perl-libxml-sax.o xpath.o C:\CPANTesters\Perl5.16.0_64\lib\CORE\perl516.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt dll.exp Devel.o:Devel.c:(.text+0x9a): undefined reference to `xmlMemUsed' Any idea what should I do now? On Thu, Sep 20, 2012 at 11:25 AM, Leo Susanto <leosusa...@gmail.com> wrote: > Thank you very much, I did this and it starts compiling now. > > SET C_INCLUDE_PATH=%INCLUDE% > > But the problem arises during make (dmake in this case), there are > lots of 'undefined reference' errors. > > Do you guys have any idea about this? > > I am using libxml2 compiled by Zlatkovic (ftp://ftp.zlatkovic.com/libxml). > Downloaded these files and unzip them to one folder: > - iconv-1.9.2.win32.zip > - libxml2-2.7.8.win32.zip > - libxmlsec-1.2.18.win32.zip > - libxslt-1.1.26.win32.zip > - openssl-0.9.8a.win32.zip > - xsldbg-3.1.7.win32.zip > - zlib-1.2.5.win32.zip > > > On Wed, Sep 19, 2012 at 11:51 PM, Tony Cook <t...@develop-help.com> wrote: >> On Wed, Sep 19, 2012 at 11:11:14PM -0700, Leo Susanto wrote: >>> I am really baffled by this problem: can someone explain why GCC can >>> not find an include file? >>> >>> > cpan PAJAS/XML-LibXML-1.70.tar.gz >>> ... >>> C:/CPANTE~1/PERL51~1.0_6/site/bin/gcc.exe -c -DNDEBUG -DWIN32 >>> -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS >>> -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS >>> -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 >>> -DVERSION=\"1.70\" -DXS_VERSION=\"1.70\" >>> "-IC:\CPANTesters\Perl5.16.0_64\lib\CORE" -DHAVE_UTF8 -DHAVE_BLANK >>> LibXML.c >>> LibXML.xs:34:31: fatal error: libxml/xmlversion.h: No such file or >>> directory >>> >>> > IF EXIST %INCLUDE%\libxml\xmlversion.h ECHO Cogito ergo sum >>> Cogito ergo sum >>> >>> This is ActiveState 5.16.0 64 bit with MinGW64. >>> >>> I also posted this to >>> http://stackoverflow.com/questions/12506906/gcc-can-not-find-file >> >> GCC doesn't use INCLUDE for the include search path, unless it's a >> MinGW extension. >> >> GCC uses CPATH in general and C_INCLUDE_PATH for C and some other >> environment variables for other languages. >> >> Tony