delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/07/16:36:56

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 <reid DOT thompson AT ateb DOT com>
Reply-To: reid DOT thompson AT ateb DOT com
To: Afflictedd2 <edvelez DOT g AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <26683356.post@talk.nabble.com>
References: <26683356 DOT post AT talk DOT nabble DOT com>
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

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

- Raw text -


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