[xmlsec] compile example
Aleksey Sanin
aleksey@aleksey.com
Thu, 27 Mar 2003 21:04:43 -0800
This is a multi-part message in MIME format.
--------------010804000408010609040502
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Ok, I believe it's "mixed MS runtime" problem. It crashes on this line:
xmlDumpDoc(output, doc);
at the very end of the example. The solution is to set code generation to
"Multithreaded DLL" (/MD). Note: *not* "Debug Multithreaded DLL"
even for debug project.
The attached is MS VC project and make files. The assumption is that
all include and library files for all libraries
(xmlsec/libxml/libxslt/openssl/iconv)
are in "include" and "lib" folders of the top project folder. Change it
if necessary.
With best regards,
Aleksey
Aleksey Sanin wrote:
>> Slava Kostin wrote:
>>
>>> Compiled binary was not chashing in simple start or on other tests. It
>>> is crashing only while processing dsig1-tmpl.xml.
>>
>>
> What is the stack trace? The "mixed MS runtime" problem cause usualy
> crashes
> either in first IO function or in malloc/free.
>
> Aleksey
>
>
--------------010804000408010609040502
Content-Type: application/x-zip-compressed;
name="dsig1.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="dsig1.zip"
UEsDBBQAAAAIAAyoey6zaOZXkQQAANURAAAJAAAAZHNpZzEubWFr7Vd7a9tIEP/7DP4OUzUU
G672NYZQTAz1QzZqZclYCUlKwOixtvey1gqtlNhc77vfrF6WH0maCxw9SCCwO++dGc3P8x7G
1A254PMIBuSeMB6QEKwo9iiHEfFJaEfEA2Pc/abCkDLyO/RsgRTugyfo4lPDE0G18k4bgnJS
6w9HdQU6HVCUagUvnUQEPsIV9Vun6MCJFyg8Vi2rO1LB4OByf04XMXqhaFEExKVzSrwGys7t
mEXUX0DE4YidBhpSjQE6rlb2AniHAexqTAkjGLYCHz48JZYYVkoRav69zai3F2ZhYRtvSeeG
x+Da+WM2YO9pPyyJD2Hs+/JtSWJLys4GPDKnCS9aEljZWB1AbzLhkuDy1cr2PWDUJw0Y8hDI
2l4FjLRLVso5TirXnGdPbazsO0Xa6zz39NJxwoWgDkPnS05dIm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