2009-08-17 15:41:30     How do I resolve undefined references to the pthreads library?

2009-08-17 15:41:30     How do I resolve undefined references to the pthreads library?

Marshall Seaborn (UNITED STATES)

Message: 78962   

I'm trying to statically link libSDL.a with my application but I get undefined references

to _pthread_mutexattr_init and _pthread_mutexattr_settype.

How do I resolve these undefined references?  I can't seem to locate the pthreads library.

QuoteReplyEditDelete

2009-08-17 16:03:41     Re: How do I resolve undefined references to the pthreads library?

Mike Frysinger (UNITED STATES)

Message: 78963   

with static libs, link order matters.  so pthread must come last.

if there's still funcs missing because our pthreads lib doesnt implement them, you'll have to just not use those functions

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.