Re: [libxml++] Win32 link error (v0.24.0 + msvc patch)
- From: "Ephraim Vider" <eff eplication com>
- To: <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [libxml++] Win32 link error (v0.24.0 + msvc patch)
- Date: Wed, 25 Jun 2003 11:55:58 +0200
FYI:
libxml++ MSVC project file changed in CVS.
-eff
----- Original Message -----
From: "Matt Esterly" <matt automaticduck com>
To: <libxmlplusplus-general lists sourceforge net>
Sent: Wednesday, June 25, 2003 12:11 AM
Subject: Re: [libxml++] Win32 link error (v0.24.0 + msvc patch)
> Thanks Ephraim! _REENTRANT did the trick. I think you are correct
> _POSIX_C_SOURCE for unix, since libxml++ compiled with the latest
> libxml on OSX without configuration changes.
>
> On Tuesday, June 24, 2003, at 11:58 AM, Ephraim Vider wrote:
>
> > The relevant lines from xmlversion.h are:
> >
> > /**
> > * LIBXML_THREAD_ENABLED:
> > *
> > * Whether the thread support is configured in
> > */
> > #if 1
> > #if defined(_REENTRANT) || (_POSIX_C_SOURCE - 0 >= 199506L)
> > #define LIBXML_THREAD_ENABLED
> > #endif
> > #endif
> >
> >
> > If the library is compiled without threads it would say #if 0 and
> > never
> > define LIBXML_THREAD_ENABLED
> > so:
> > In msvc you have to define _REENTRANT to get LIBXML_THREAD_ENABLED when
> > thread support is on, and it will have no effect on libxml when thread
> > support is off.
> >
> > On unix machines it may be that the _POSIX_C_SOURCE is automatically
> > defined
> > so there is no need to define anything else, but this is just a guess
> > (it is
> > so on my linux).
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]