<br><br><div class="gmail_quote">On Wed, Dec 1, 2010 at 8:29 AM, Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
First, you probably want to use mailing list. This way you might get<br>
a better response.<br></blockquote><div><br></div><div>Ok, understood. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Second, how did you compile the library and example? Did you use<br>
provided makefiles?<br>
<br></blockquote><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Yes, I used the Makefiles insize the gzip archive and I followed the instructions in README, examples\README and win32\README.txt. I used 'cscript win32\configure.js' to setup my environment, as directed. I have all the needed libs in my lib directory, all needed .h files in an include directory, and the INCLUDE and LIB env vars setup properly.</div>
<div><br></div><div>I'm building using Visual Studio 2005 tools, from the command-line. The zlib.lib (and zdll.lib) libraries were missing from the linker command-line in both cases, for example here's how I modified the win32\Makefile.msvc file. (I would make this change more robust, i.e. account for zdll.lib, in an actual patch for you).</div>
<div><br></div><div><div><div>C:\projects\xmlsec\xmlsec1-1.2.16\win32>diff -c Makefile.msvc ..\..\..\xmlsec-1\xmlsec1-1.2.16\win32\Makefile.msvc</div><div>*** Makefile.msvc 2010-12-01 08:46:29.171875000 -0800</div>
<div>--- ..\..\..\xmlsec-1\xmlsec1-1.2.16\win32\Makefile.msvc 2010-05-25 15:52</div><div>:46.000000000 -0700</div><div>***************</div><div>*** 359,365 ****</div><div> LD = link.exe</div><div>
LDFLAGS = /nologo</div><div> LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)</div><div><b>! LIBS = zlib.lib</b></div><div><br></div><div> # Optimisation and debug symbols.</div>
<div> !if "$(DEBUG)" == "1"</div><div>--- 359,365 ----</div><div> LD = link.exe</div><div> LDFLAGS = /nologo</div><div> LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)</div>
<div><b>! LIBS =</b></div><div><br></div><div> # Optimisation and debug symbols.</div><div> !if "$(DEBUG)" == "1"</div></div></div><div><br></div><div>Pk.</div></span></div></div>