RE: [xml] Creating Win32 wrapper function for exported variables
- From: "Vakoc, Mark" <Mark_Vakoc jdedwards com>
- To: "'Robert Collins'" <robert collins itdomain com au>
- Cc: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] Creating Win32 wrapper function for exported variables
- Date: Tue, 17 Jul 2001 16:10:00 -0600
I tried this. I have libxml2 built into a .dll and libxslt built into a
.dll. I added xmlLoadExtDtdDefaultValue to the .def for libxml. If I build
xsltproc, dynamicly linking against libxml2.lib, it will compile/link
without error, but will give an access violation as soon as the variable
xmlLoadExtDtdDefaultValue is used.
If I link xsltproc against the .lib staticly (i.e. using the project
libxml2_a.dsp) xsltproc works without error.
Perhaps I am missing something in the .def file. I tried both
EXPORTS
xmlLoadExtDtdDefaultValue
and
EXPORTS
xmlLoadExtDtdDefaultValue DATA
The latter of which causes an error because xmlLoadExtDtdDefaultValue is
already declared through LIBXML_DLL_IMPORT.
Anyone else able to build and use xsltproc dynamically linked against
libxml2?
-----Original Message-----
From: Robert Collins [mailto:robert collins itdomain com au]
Sent: Tuesday, July 17, 2001 4:03 PM
To: Vakoc, Mark; xml gnome org
Subject: Re: [xml] Creating Win32 wrapper function for exported
variables
You can export variables if you use a .def file for the .dll.
There's no need for wrapper functions.
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]