X-Spam-Check-By: sourceware.org Message-ID: <44B1513A.6010007@web.de> Date: Sun, 09 Jul 2006 20:55:54 +0200 From: Serethos User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: GCC programming: header pthread not found but installed Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sender: serethos AT web DOT de X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I want to program with gcc and the Posix-Thread library under XP via Cygwin. But the very basic program #include int main() { return 0; } fails with a gcc call like: gcc test.c -lpthread with the error: pthread.h: no such file or directory But the header does exist in the \usr\include directory, also the library itself (libpthread.a) is located under the directory \cygwin\lib. At least I checked my Windows environment variables, there both directories are set. The thing I am irritated is that standard includes like math.h are in the same directory (\usr\include) and I can work with them. -- 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/