You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Richard Lanyon <rg...@decisionsoft.com> on 2000/02/17 12:44:12 UTC

xerces-c compile: __USE_UNIX98 not defined

I've just got xml-xerces out of CVS, and tried to build xerces-c, but I
get the following:

tugela:~/xml-apache/xml-xerces/c/src% ./runConfigure -plinux -cgcc -xg++
-minmem -nfileonly -tnative > runConfigure.log
tugela:~/xml-apache/xml-xerces/c/src% gmake > gmake.log
Linux/LinuxPlatformUtils.cpp:108: #error __USE_UNIX98 is not defined in
your compile settings
gmake[2]: *** [Linux/LinuxPlatformUtils.o] Error 1

The result is that when I try and compile the tests or the samples, I get
loads of unresolved symbols for XMLPlatformUtils stuff. Any suggestions?

Richard


Re: xerces-c compile: __USE_UNIX98 not defined

Posted by Richard Lanyon <rg...@decisionsoft.com>.
On Thu, 17 Feb 2000, Richard Lanyon wrote:

> tugela:~/xml-apache/xml-xerces/c/src% gmake > gmake.log
> Linux/LinuxPlatformUtils.cpp:108: #error __USE_UNIX98 is not defined in
> your compile settings
> gmake[2]: *** [Linux/LinuxPlatformUtils.o] Error 1

Apologies for replying to my own message, but it seems that
xml-xerces/c/src/util/Platforms/Linux/LinuxPlatformUtils.cpp
contains __USE_UNIX98 when it should contain _GNU_SOURCE (as indicated by
xml-xerces/c/src/util/Platforms/Makefile).

-- 
Richard Lanyon (Software Engineer) |     "The medium is the message"
XML Script development,            |             - Marshall McLuhan
DecisionSoft Ltd.                  |