Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is -mthreads required for building static libraries or only linking?

2 views
Skip to first unread message

jmd...@yahoo.com

unread,
Mar 19, 2009, 1:46:19 PM3/19/09
to
I realize -mthreads is vital when linking an executable, but does it
affect compilation of static libraries prior to linking?

stef

unread,
Mar 26, 2009, 5:03:07 AM3/26/09
to
On Mar 19, 6:46 pm, jmd...@yahoo.com wrote:
> I realize -mthreads is vital when linking an executable, but does it
> affect compilation of static libraries prior to linking?

Indeed if you are to use a lib in mode multithread -
mthread shall be use at library object compilation.
more specially if library is to be use common resources
like doing printf.


0 new messages