www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44B15497.1BC91CCE@dessent.net> |
Date: | Sun, 09 Jul 2006 12:10:15 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: GCC programming: header pthread not found but installed |
References: | <44B1513A DOT 6010007 AT web DOT de> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Serethos wrote: > fails with a gcc call like: > gcc test.c -lpthread > > with the > error: pthread.h: no such file or directory The testcase compiles just fine for me with no errors. Please review the problem reporting guidelines at <http://cygwin.com/problems.html>. You did not provide the requested cygcheck output, and so there is not enough information in your message to be of any more help. As a guess I would have to say that you're not using Cygwin's gcc due to some other gcc being in the path, but that's just pure speculation. By the way, including "-lpthread" is not necessary and serves no purpose. All of the pthread support is in -lcygwin (cygwin1.dll), which gets linked against by the gcc specs file regardless of what options you use (except of course for -mno-cygwin.) There is no such separate "pthreads library" as on unix, and libpthread.a is provided just so that Makefiles that expect to be able to specify -lpthread continue to work, but it is not necessary and serves no useful purpose. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |