i am trying to compile a source distribution that is intended for linux . it
has flags included -
-D_XOPEN_SOURCE and -DPOSIX_SOURCE
i get an error “#error This version of XOPEN_SOURCE is not supported”
which is appaently from platform.h file
#if defined(_XOPEN_SOURCE)
#if _XOPEN_SOURCE-0 != 500
#error This version of XOPEN_SOURCE is not supported
#endif
how do i get about this problem…i have no idea how this _XOPEN_SOURCE-0
flag is determined …
i am using gcc compiler 2.95.2 …
thanks.
ankur
forgot to mention am using QRTP
thanks,
ankur
“Ankur Bhargava” <bhargava_ankur@hotmail.com> wrote in message
news:8vjttl$6sm$1@inn.qnx.com…
i am trying to compile a source distribution that is intended for linux .
it
has flags included -
-D_XOPEN_SOURCE and -DPOSIX_SOURCE
i get an error “#error This version of XOPEN_SOURCE is not supported”
which is appaently from platform.h file
#if defined(_XOPEN_SOURCE)
#if _XOPEN_SOURCE-0 != 500
#error This version of XOPEN_SOURCE is not supported
#endif
how do i get about this problem…i have no idea how this _XOPEN_SOURCE-0
flag is determined …
i am using gcc compiler 2.95.2 …
thanks.
ankur
Ankur Bhargava <bhargava_ankur@hotmail.com> wrote:
forgot to mention am using QRTP
thanks,
ankur
“Ankur Bhargava” <> bhargava_ankur@hotmail.com> > wrote in message
news:8vjttl$6sm$> 1@inn.qnx.com> …
i am trying to compile a source distribution that is intended for linux .
it
has flags included -
-D_XOPEN_SOURCE and -DPOSIX_SOURCE
Try setting the flag to be
-D_XOPEN_SOURCE=500
GP
i get an error “#error This version of XOPEN_SOURCE is not supported”
which is appaently from platform.h file
#if defined(_XOPEN_SOURCE)
#if _XOPEN_SOURCE-0 != 500
#error This version of XOPEN_SOURCE is not supported
#endif
how do i get about this problem…i have no idea how this _XOPEN_SOURCE-0
flag is determined …
i am using gcc compiler 2.95.2 …
thanks.
ankur
–
Graeme Peterson
QNX Tools Group
gp@qnx.com