LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2005, 06:18 AM   #1
dmarkh
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
linux glibc nptl pthread_mutexattr_init function?


I'm using glibc-2.3.3 on i386 platform running kernel 2.6.11. The man page for pthread_mutexattr_init indicates I can use the PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP type of Mutex however the only type I can successfully build my program with is PTHREAD_MUTEX_INITIALIZER.

#include <pthread.h>
pthread_mutex_t Q_lock = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;

Causes the following error when I compile my pgm with gcc.

global.c:471: error: `PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP' undeclared here (not in a function)


Is the man page incorrect? Does Linux/glibc support the PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP? If so is there a trick to using other than the default PTHREAD_MUTEX_INITIALIZER type of mutex?

Thanks
Mark
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 04:22 PM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 07:28 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 08:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 03:31 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 01:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration