Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using -lpthread with gcc 4.0.1: necessary flag?



Hello,

I am porting an open source program, Felix http:// felix.sourceforge.net, to OS X 10.4 using Apple Developer Tools' gcc 4.0.1. In the process of building Felix I found that small threaded programs do not require linkage to the pthread library--you do not need to add -lpthread to the gcc or g++ compiler commands to run the program.

Is -lpthread necessary for gcc 4.0.1?
Does -lpthread add any special flags that might be necessary in a more complex program?


Thanks in advance,
Peter Tanski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.