X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Sep 2010 00:18:41 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: missing pthread.h in building 64-bit aaplications
Message-ID: <20100921041841.GC13592@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <29764972.post@talk.nabble.com> <20100921021846.GB13592@ednor.casa.cgf.cx> <4C981AB8.8020602@cwilson.fastmail.fm>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4C981AB8.8020602@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Sep 20, 2010 at 10:38:48PM -0400, Charles Wilson wrote:
>On 9/20/2010 10:18 PM, Christopher Faylor wrote:
>> On Mon, Sep 20, 2010 at 05:01:52PM -0700, kenny@ca wrote:
>>> I used "x86_64-w64-mingw32-gcc ...." to build the application, but failed.
>>> The output tells missing pthread.h. pthread.h is included in one of my
>>> source files.
>>>
>>> I located the file, one in C:\cygwin\usr\include, the other
>>> C:\cygwin\usr\x86_64-w64-mingw32\sys-root\mingw\include.
>>>
>>> I tried using -I to tell gcc to include pthread.h, but failed. why? 
>> 
>> This is a MinGW compiler.  It doesn't support pthread.  Any threading
>> support would be with standard Windows calls.
>
>I don't think that's accurate.  The x86_64-mingw64 cross compiler
>package set includes a win32-pthreads package, including pthread.h.
>It's necessary for gcc's OMP support via libgomp.

Yeah, duh.  I should have picked up on that from the report.

Sorry for the noise.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

