X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Subject: Re: Help with errors while compiling From: Reid Thompson Reply-To: reid DOT thompson AT ateb DOT com To: Afflictedd2 Cc: cygwin AT cygwin DOT com In-Reply-To: <26683356.post@talk.nabble.com> References: <26683356 DOT post AT talk DOT nabble DOT com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Dec 2009 16:36:32 -0500 Message-ID: <1260221793.12347.3.camel@raker.ateb.com> Mime-Version: 1.0 X-IsSubscribed: yes 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, 2009-12-07 at 12:12 -0800, Afflictedd2 wrote: > Hi everyone, >=20 > I'm trying to build a simple program using pthreads, but I get the > following > errors, why? >=20 > Any help appreciated. > J >=20 > make -f Makefile CFG=3DDebug=20 > g++ -c -g -o "Debug/Pthreads.o" -I/Cygwin/usr/include Pthreads.cpp > In file included from Pthreads.cpp:10: > /Cygwin/usr/include/pthread.h:77: error: `pthread_attr_t' was not > declared > in this scope > /Cygwin/usr/include/pthread.h:77: error: expected primary-expression perhaps an -lpthread -- 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