This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with errors while compiling


On Mon, 2009-12-07 at 12:12 -0800, Afflictedd2 wrote:
> Hi everyone,
> 
> I'm trying to build a simple program using pthreads, but I get the
> following
> errors, why?
> 
> Any help appreciated.
> J
> 
> make -f Makefile CFG=Debug 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]