Re: [xml] Compile error libxml2-2.1.1/WIN32

Date view Thread view Subject view Author view

From: Peter Jacobi (pj@walter-graphtek.com)
Date: Thu Jul 06 2000 - 11:33:10 EDT


Hi Erwin, All,

> The DLL part might be tricky ? Does anybody else have experiance
> building
> DLL's without __declspec(dllexport) ? specific includes can go
> in the winconfig.h (config.h what ever :-)

I mostly prefer static linking of libxml. When using dynamic linking,
shouldn't there be a way this can be done without changing the sources?

Using Watcom C/C++ I can either use DEF files or commandline options
(which also can be set from the IDE), to specify, which symbols to
export/import.

I'm pretty sure there is a MSVC equivalent to this.

As a last resort, you always can use hand (or PERL) written stubs in a
separate sourcefile:

dlldefstubs.c
__declspec(dllexport) xmllib_foo () {foo ();}
// ...

dllusestubs.c
__declspec(dllimport) xmllib_foo ();
foo () {xmllib_foo ();}
// ...

Regards,
Peter Jacobi

The network functions (mainly
> the nano FTP/HTTPD stuff might be unavoidable to be changed a bit, to
> handle the return values correctly) but thats rather isolated in one or
> two files, and not touching much of the actual XML lib.
>
>
> >
> > Also don't ask me to check anything on Windows, I don't have it and
> > don't expect to use or install it in the forseable future. Testing
> Damn , not everybody is that lucky you know :-)
>
> > occasionally on Solaris or AIX is possible for me without too much
> > pain so I do it from time to time.
> I can do testing on NT, 98 and 2K and Linux at home (to check if we
> don't break
> anything on UNIX :-)
>
> >
> > Daniel
>
> - Erwin
>
> >
> > --
> > Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks :
> > Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW
> > Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html
> > rpmfind
> > http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe
> > ----
> > Message from the list xml@xmlsoft.org
> > Archived at : http://xmlsoft.org/messages/
> > to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
>
> --
> Q - S O F T - E N G I N E E R I N G
> Rodachtalweg 11, 81549 Muenchen, Germany
>
> Erwin Rol (Software Engineer) phone: +49-89-68050051
> Erwin.Rol@Q-Soft-Engineering.com fax : +49-89-68050052
> ----
> Message from the list xml@xmlsoft.org
> Archived at : http://xmlsoft.org/messages/
> to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:22 EDT