X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-50.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Subject: Re: missing pthread.h in building 64-bit aaplications From: "Yaakov (Cygwin/X)" To: cygwin In-Reply-To: <29764972.post@talk.nabble.com> References: <29764972 DOT post AT talk DOT nabble DOT com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 20 Sep 2010 22:36:15 -0500 Message-ID: <1285040175.5004.2.camel@YAAKOV04> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, 2010-09-20 at 17:01 -0700, kenny AT 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? Keep in mind that the new mingw* compilers are Cygwin-hosted cross-compilers: they use standard *NIX paths. In any case, if mingw64-x86_64-pthreads is installed, then you don't need an -I flag at all; pthread.h should already be in the default search path. Yaakov -- 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