Re: [Anjuta-list] (Urgent) How to add -lpthread linking option



Jeremy Johnson wrote:

Sorry it this is a duplicate.  I'm having some problems w/ my list subscription.

I'm new to Anjuta, Linux development and automake so please have mecy on me.

I'm trying to complete a a C project today that requires pthreads.  In order to overcome an unresolved reference to "pthread_create", I've learned that I must give the "-lpthread" option to gcc when linking.

Unfortunatlely, I'm having trouble determining where in Anjuta and/or the complex Makefiles it produces I should add the "-lpthread".  Would someone be so kind as to clue me in?

Eternal thanks,
Jeremy N???޵隊X???'???u???)??Y?\?g?????????Á¿??b?HzG(??xb?Ùš?X??X?? ?Ö¥??e??l???q???z?m????X???(??~??zw??X?????b???jxbst==

Just go to Parameters->Compiler & Linker Settings->Libraries and
Add pthread.

It should be ok.

@++. Erwan.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]