On Thu, Sep 20, 2012 at 11:25:06AM -0700, Leo Susanto 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

Are these 64-bit libraries?  Though that doesn't seem to be the
problem in this case.

> 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

I don't see -lxml or libxml in this link command.

I suspect EU::MM is stripping out the -lxml2 (or -llibxml2 because it
can't find it, while perhaps the test links Makefile.PL does can.

Running Makefile.PL with LIBS:

  perl Makefile.PL LIBS=-Lc:/whereever/the/libraries/are

may fix that.

Tony

Reply via email to