delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/09/23:13:37

X-Spam-Check-By: sourceware.org
Message-ID: <44B1C5D2.20701@sbcglobal.net>
Date: Sun, 09 Jul 2006 20:13:22 -0700
From: Tim Prince <timothyprince AT sbcglobal DOT net>
Reply-To: tprince AT myrealbox DOT com
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
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>
In-Reply-To: <44B1513A.6010007@web.de>
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:
> I want to program with gcc and the Posix-Thread library under XP via 
> Cygwin. But the very basic program
> 
> #include <pthread.h>
> 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.
I think someone already tried to respond, before this post came to my 
e-mail server.  This mailing list is about cygwin and the gcc which is 
installed with it, not about some other compiler which you might have 
installed.  Windows environment variables have no bearing on cygwin gcc. 
  If you install cygwin gcc normally, its own include directory should 
be mounted at /usr/include.  Following the advice in the URLs at the 
bottom of your post would enable people to see whether you installed 
cygwin properly.  I don't know whether installing some include directory 
in a similar looking Windows directory would interfere, but it's best to 
install compilers in the intended ways, particularly when that assures 
they don't interfere with each other.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019