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
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.