compiling error

Hey,

I have this error from compiling – seems that I need some package for POSIX
Threads. However, I was compiling earlier and did not get this error. Does
anyone know whether I have to install an updated threads package and where I
could get it from or some other way to resolve this problem?

Thanks, Sutin

qcc -g -ansi -DDEBUG -Wall -g CANserver.c -o CANserver
In file included from /usr/include/sys/neutrino.h:22,
from CANserver.c:24:
/usr/include/sched.h:26: #error POSIX Scheduling needs P1003.1b-1993 or
later
In file included from /usr/include/sys/resmgr.h:15,
from /usr/include/sys/iofunc.h:46,
from CANserver.c:25:
/usr/include/pthread.h:22: #error POSIX Threads needs P1003.1b-1993 or later
In file included from CANserver.c:24:
/usr/include/sys/neutrino.h:131: NGROUPS_MAX' undeclared here (not in a function) cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33 CANserver.c: In function parseAttribute’:
CANserver.c:319: warning: int format, opT arg (arg 3)
CANserver.c:320: warning: float format, double arg (arg 3)
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1 error 33
make: *** [CANserver] Error 1

Might be the -ansi flag…if you look at the posix defines in the headers,
they probably aren’t getting defined when you flip the ansi flag on.

cheers,

Kris

“Jason Ahmad” <jahmad@stanford.edu> wrote in message
news:acejuq$j1b$1@inn.qnx.com

Hey,

I have this error from compiling – seems that I need some package for
POSIX
Threads. However, I was compiling earlier and did not get this error.
Does
anyone know whether I have to install an updated threads package and where
I
could get it from or some other way to resolve this problem?

Thanks, Sutin

qcc -g -ansi -DDEBUG -Wall -g CANserver.c -o CANserver
In file included from /usr/include/sys/neutrino.h:22,
from CANserver.c:24:
/usr/include/sched.h:26: #error POSIX Scheduling needs P1003.1b-1993 or
later
In file included from /usr/include/sys/resmgr.h:15,
from /usr/include/sys/iofunc.h:46,
from CANserver.c:25:
/usr/include/pthread.h:22: #error POSIX Threads needs P1003.1b-1993 or
later
In file included from CANserver.c:24:
/usr/include/sys/neutrino.h:131: NGROUPS_MAX' undeclared here (not in a function) cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33 CANserver.c: In function parseAttribute’:
CANserver.c:319: warning: int format, opT arg (arg 3)
CANserver.c:320: warning: float format, double arg (arg 3)
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1 error 33
make: *** [CANserver] Error 1