Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
`PTHREAD_MUTEX_RECURSIVE' undeclared.

 
Post new topic   Reply to topic Printable version
 View previous topic  Trigger module Post :: Post Attach process  View next topic  
Author Message
Manic090
Newbie


Age:37
Gender:Gender:Male
Joined: Dec 28 2003
Posts: 4
Location: England
Offline

PostPosted: Mon Dec 29, 2003 5:03 pm    Post subject: `PTHREAD_MUTEX_RECURSIVE' undeclared. Reply to topic Reply with quote

When i try to compile Flag/Ball .c
Error Message
`PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
I think it might be that i did a bit of a dodge upgrade of glibc i only had 2.2.6, where 2.3 is needed.

Any help appreciated

Thanks

-Manic
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Manic090
Newbie


Age:37
Gender:Gender:Male
Joined: Dec 28 2003
Posts: 4
Location: England
Offline

PostPosted: Tue Dec 30, 2003 6:33 am    Post subject: Reply to topic Reply with quote

Fixed.

pthread.h was missing the declaration, just needed to use a define to point it to pthread_mutex_recursive_np

-Manic
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Thu Jan 01, 2004 7:36 pm    Post subject: Reply to topic Reply with quote

Yeah, linux pthreads sort of sucks. PTHREAD_MUTEX_RECURSIVE is what posix says should be supported, but some versions of glibc have only PTHREAD_MUTEX_RECURSIVE_NP (the np stands for non-portable), when they have the same meaning.

At least we have NPTL plus kernel 2.6 to look forward to, which will make pthreads on linux fully conforming and faster too.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 663 page(s) served in previous 5 minutes.

phpBB Created this page in 0.506314 seconds : 28 queries executed (83.2%): GZIP compression disabled