X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 20 Sep 2010 22:18:46 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: missing pthread.h in building 64-bit aaplications Message-ID: <20100921021846.GB13592@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <29764972 DOT post AT talk DOT nabble DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29764972.post@talk.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Mon, Sep 20, 2010 at 05:01:52PM -0700, kenny AT ca wrote: > >Hello All, > >Goal: Building 64-bit application on Cygwin >OS: 64-bit Windows 7 > >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. 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