[xml] libxml2-2.6.22 static vs. dynamic on Windows




Hello,

On Windows, I see a difference between the static and dynamic libraries.
When I link with the dynamic library, I get this error:

("error LNK2019: unresolved external symbol ___xmlIndentTreeOutput").

I do not get this error with the static version of libxml2.

Here is how I built libxml2:
--------------------------------------------------------
REM ###COMMON###
call %VS71COMNTOOLS%\vsvars32.bat
set XML_DIR=N:\Build\LIBXML2\ix2k
set INC_DIR=%XML_DIR%\include

REM ###RELEASE###
set LIB_DIR=%XML_DIR%\release
set DBG=no

cscript configure.js compiler=msvc prefix=%XML_DIR% incdir=%INC_DIR%
include=%INC_DIR% libdir=%LIB_DIR% sodir=%LIB_DIR% lib=%LIB_DIR% zlib=no
iconv=no debug=%DBG%

nmake -f Makefile.msvc clean
nmake -f Makefile.msvc
nmake -f Makefile.msvc install
--------------------------------------------------------

Has anyone seen this error? ("error LNK2019: unresolved external symbol
___xmlIndentTreeOutput") Is there a solution?

Thanks,
-Tom

:)

Tom Floodeen, Jr.
Mentor Graphics
Board Systems Division
720.494.1133 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]