Re: [libxml++] Win32 link error (v0.24.0 + msvc patch)
- From: Matt Esterly <matt automaticduck com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] Win32 link error (v0.24.0 + msvc patch)
- Date: Tue, 24 Jun 2003 15:11:36 -0700
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]