[Expat-discuss] Expat as a static library in Win32
Subramanian, Binu
binu.subramanian@barconet.com
Thu Jul 25 22:18:02 2002
Hello,
I finally got it.
Yes, i am having expat 1.95.4 and am using Microsoft Visual C.
Made an empty Win 32 static lib, copied all the *.c and *.h files to it
and finally changed the lines in xmlparse.c and expat.h from
#define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl
to
#define XMLPARSEAPI(type) type __cdecl
I was finally able to compile and link it to my project.
Thank you.
regards,
Binu
-----Original Message-----
From: Josh Martin [mailto:Josh.Martin@abq.sc.philips.com]
Sent: 25 July 2002 23:54
To: fdrake@acm.org; binu.subramanian@barconet.com
Cc: expat-discuss@lists.sourceforge.net
Subject: RE: [Expat-discuss] Expat as a static library in Win32
Do you have expat 1.95.4? Are you using Microsoft Visual C, or Borland
Builder?
- Josh Martin
> Hello Fred,
>
> Can u tell me how can i make expat a static library?
>
> - Binu
>
> -----Original Message-----
> From: Fred L. Drake, Jr. [mailto:fdrake@acm.org]
> Sent: 23 July 2002 17:19
> To: Subramanian, Binu
> Cc: expat-discuss@lists.sourceforge.net
> Subject: Re: [Expat-discuss] Expat as a static library in Win32
>
>
>
> Subramanian, Binu writes:
> > I want to use expat as a static library. I tried some of the
suggestions
> > given on the mailing list...ie
> > replacing the lines in xmlparse.cpp and compiling with the _LIB option
> > instead of the _USRDLL option.
>
> There is no xmlparse.cpp in the current version of Expat; it is
> comprised entirely of C code, not C++. Have you tried a recent
> version? Static libraries are now supported.
>
>
> -Fred
>
> --
> Fred L. Drake, Jr. <fdrake at acm.org>
> PythonLabs at Zope Corporation
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Jabber - The world's fastest growing
> real-time communications platform! Don't just IM. Build it in!
> http://www.jabber.com/osdn/xim
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/expat-discuss