public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* pthread_mutexattr_settype() ... g++ 2.96 ... won't work
@ 2004-03-16 21:33 Andrey
  0 siblings, 0 replies; only message in thread
From: Andrey @ 2004-03-16 21:33 UTC (permalink / raw)
  To: gcc-help


   Hi,

   Here's the problem. I have a call to
pthread_mutexattr_settype() in C++ code, and compile
it with g++ 2.96. It doesn't see the function, when I
look into pthread.h, it is #defined __USE_UNIX98,
which is not defined.

   What is interesting, I can compile the very same
code with g++ 3.2.2. Also, I can compile the C code
with the pthread_mutexattr_settype() function using
gcc. ALSO :), when I put this into simple C program

#ifndef __USE_UNIX98
#error blah
#endif
#include <pthread.h>
. . . 

pthread_mutexattr_settype(...)

and compile it with gcc, it bails out with the error!
How come?

Anyway, the main question is -- I need to compile C++
code with g++ 2.96 and somehow initialize a recursive
mutex. Any ideas? Thanks!

Andrey Fedorov

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-16 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-16 21:33 pthread_mutexattr_settype() ... g++ 2.96 ... won't work Andrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).