delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/18/13:55:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <20050318185534.64982.qmail@web52404.mail.yahoo.com>
Date: Fri, 18 Mar 2005 10:55:34 -0800 (PST)
From: Mark Dobie <mdobie AT yahoo DOT com>
Subject: compile failing 'pthread_attr_t was not declared in this scope'
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

I am working on a new installation of cygwin and am
encountering the following compiler error, that I hope
someone here can help me with.  Thanks.
 
In file included from
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:
37,
                 from
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr.h:98,
                 from
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/c++io.h:37,
                 from
/usr/include/c++/3.3.3/bits/fpos.h:44,
                 from
/usr/include/c++/3.3.3/iosfwd:49,
                 from /usr/include/c++/3.3.3/ios:44,
                 from
/usr/include/c++/3.3.3/ostream:45,
                 from
/usr/include/c++/3.3.3/iostream:45,
                 from sastargetsim.cpp:259:
/usr/include/pthread.h:75: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:75: error: parse error before
`)' token
/usr/include/pthread.h:76: error: parse error before
`*' token
/usr/include/pthread.h:77: error: parse error before
`*' token
/usr/include/pthread.h:78: error: parse error before
`*' token
/usr/include/pthread.h:79: error: parse error before
`*' token
/usr/include/pthread.h:80: error: parse error before
`*' token
/usr/include/pthread.h:81: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:81: error: parse error before
`)' token
/usr/include/pthread.h:82: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:82: error: parse error before
`,' token
/usr/include/pthread.h:83: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:83: error: parse error before
`,' token
/usr/include/pthread.h:84: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:84: error: parse error before
`,' token
/usr/include/pthread.h:85: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:85: error: parse error before
`,' token
/usr/include/pthread.h:86: error: `pthread_attr_t' was
not declared in this
   scope
/usr/include/pthread.h:86: error: parse error before
`,' token
/usr/include/pthread.h:102: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:125: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:125: error: parse error before
`)' token
/usr/include/pthread.h:126: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:126: error: parse error before
`)' token
/usr/include/pthread.h:127: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:127: error: parse error before
`,' token
/usr/include/pthread.h:128: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:128: error: parse error before
`)' token
/usr/include/pthread.h:129: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:129: error: parse error before
`,' token
/usr/include/pthread.h:131: error: `pthread_cond_t'
was not declared in this
   scope
/usr/include/pthread.h:131: error: parse error before
`,' token
/usr/include/pthread.h:132: error:
`pthread_condattr_t' was not declared in
   this scope
/usr/include/pthread.h:132: error: parse error before
`)' token
/usr/include/pthread.h:133: error: parse error before
`*' token
/usr/include/pthread.h:134: error:
`pthread_condattr_t' was not declared in
   this scope
/usr/include/pthread.h:134: error: parse error before
`)' token
/usr/include/pthread.h:135: error:
`pthread_condattr_t' was not declared in
   this scope
/usr/include/pthread.h:135: error: parse error before
`,' token
/usr/include/pthread.h:137: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:137: error: parse error before
`,' token
/usr/include/pthread.h:138: error: `pthread_create'
declared as function
   returning a function
/usr/include/pthread.h:138: error: parse error before
`void'
/usr/include/pthread.h:139: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:140: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:140: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:140: error: initializer list
being treated as compound
   _expression
/usr/include/pthread.h:142: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:142: error: parse error before
`*' token
/usr/include/pthread.h:143: error: `pthread_key_t' was
not declared in this
   scope
/usr/include/pthread.h:144: error: `pthread_t' was not
declared in this scope
/usr/include/pthread.h:144: error: parse error before
`*' token
/usr/include/pthread.h:145: error: `pthread_key_t' was
not declared in this
   scope
/usr/include/pthread.h:145: error: parse error before
`,' token
/usr/include/pthread.h:145: error:
`pthread_key_create' declared as function
   returning a function
/usr/include/pthread.h: In function `int
pthread_key_create(...)':
/usr/include/pthread.h:145: error: parse error before
`)' token
/usr/include/pthread.h:146: error: `pthread_key_t'
undeclared (first use this
   function)
/usr/include/pthread.h:146: error: (Each undeclared
identifier is reported only
   once for each function it appears in.)
/usr/include/pthread.h:149: error: `pthread_mutex_t'
undeclared (first use this
   function)
/usr/include/pthread.h:149: error: parse error before
`)' token
/usr/include/pthread.h:150: error: parse error before
`*' token
/usr/include/pthread.h:151: error: parse error before
`,' token
/usr/include/pthread.h:152: error: parse error before
`)' token
/usr/include/pthread.h:153: error: parse error before
`,' token
/usr/include/pthread.h:154: error: parse error before
`)' token
/usr/include/pthread.h:155: error: parse error before
`)' token
/usr/include/pthread.h:156: error:
`pthread_mutexattr_t' undeclared (first use
   this function)
/usr/include/pthread.h:156: error: parse error before
`)' token
/usr/include/pthread.h:157: error: parse error before
`*' token
/usr/include/pthread.h:158: error: parse error before
`*' token
/usr/include/pthread.h:159: error: parse error before
`*' token
/usr/include/pthread.h:160: error: parse error before
`*' token
/usr/include/pthread.h:161: error: parse error before
`)' token
/usr/include/pthread.h:162: error: parse error before
`,' token
/usr/include/pthread.h:163: error: parse error before
`,' token
/usr/include/pthread.h:164: error: parse error before
`,' token
/usr/include/pthread.h:165: error: parse error before
`,' token
/usr/include/pthread.h:168: error: `pthread_rwlock_t'
undeclared (first use
   this function)
/usr/include/pthread.h:168: error: `rwlock' undeclared
(first use this
   function)
/usr/include/pthread.h:169: error: parse error before
`*' token
/usr/include/pthread.h:175: error:
`pthread_rwlockattr_t' undeclared (first use
   this function)
/usr/include/pthread.h:175: error: `rwlockattr'
undeclared (first use this
   function)
/usr/include/pthread.h:176: error: parse error before
`*' token
/usr/include/pthread.h:178: error: `attr' undeclared
(first use this function)
/usr/include/pthread.h:178: error: parse error before
`)' token
/usr/include/pthread.h:181: error: `pthread_once_t'
undeclared (first use this
   function)
/usr/include/pthread.h:181: error: parse error before
`,' token
/usr/include/pthread.h:181: error: `pthread_once'
declared as function
   returning a function
/usr/include/pthread.h: In function `int
pthread_once(...)':
/usr/include/pthread.h:181: error: parse error before
`)' token
/usr/include/pthread.h:188: error: parse error before
`)' token
/usr/include/pthread.h:191: error: `pthread_t'
undeclared (first use this
   function)
/usr/include/pthread.h:191: error: parse error before
`,' token
/usr/include/pthread.h:192: error: parse error before
`void'
In file included from
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr.h:98,
                 from
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/c++io.h:37,
                 from
/usr/include/c++/3.3.3/bits/fpos.h:44,
                 from
/usr/include/c++/3.3.3/iosfwd:49,
                 from /usr/include/c++/3.3.3/ios:44,
                 from
/usr/include/c++/3.3.3/ostream:45,
                 from
/usr/include/c++/3.3.3/iostream:45,
                 from sastargetsim.cpp:259:
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:
In function `int
   ftruncate(int, long int)':
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:40:
error: syntax
   error before `;' token
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:41:
error: syntax
   error before `;' token
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:42:
error: syntax
   error before `;' token
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:89:
error: cannot
   declare static function inside another function
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:
In function `int
   __gthread_active_p()':
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: `
   __gthread_once_t' undeclared (first use this
function)
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: `once'
   undeclared (first use this function)
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: `func'
   undeclared (first use this function)
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: parse
   error before `)' token
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: `
   __gthread_once' declared as an `inline' variable
/usr/include/c++/3.3.3/i686-pc-cygwin/bits/gthr-default.h:450:
error: initialize
r



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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