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

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

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

Attachments

    Outcomes