Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pthread programming issue: PTHREAD_STACK_MIN undeclared

2,397 views
Skip to first unread message

climb...@gmail.com

unread,
May 25, 2009, 2:03:56 PM5/25/09
to
Hi All,
I need to find out the minimum stack size on the platform. Is it
stored in PTHREAD_STACK_MIN ?
However, I compile the code as usual. Looks like the preprocessor
can't resolve PTHREAD_STACK_MIN. I tried this on two computers (both
are running Linux). Still get the same error from gcc.
any ideas?
Thanks.


tony

> gcc -lpthread DPmon.c -o dp
DPmon.c: In function ‘main’:
DPmon.c:86: error: ‘PTHREAD_STACK_MIN’ undeclared (first use in this
function)
DPmon.c:86: error: (Each undeclared identifier is reported only once
DPmon.c:86: error: for each function it appears in.)

David Schwartz

unread,
May 26, 2009, 1:31:03 AM5/26/09
to

#include <limits.h>

DS

climb...@gmail.com

unread,
May 26, 2009, 3:43:53 PM5/26/09
to

> #include <limits.h>
>
> DS

Thanks David. It works!!

tony

0 new messages