delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/25/15:10:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49CA91E3.9090703@gmail.com>
Date: Wed, 25 Mar 2009 20:19:47 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: problem with pthread.h
References: <alpine DOT LFD DOT 1 DOT 10 DOT 0903251454430 DOT 11485 AT cs25 DOT cs DOT iusb DOT edu> <49CA85D6 DOT 5090601 AT sh DOT cvut DOT cz>
In-Reply-To: <49CA85D6.5090601@sh.cvut.cz>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Václav Haisman wrote:
> Dana wrote, On 25.3.2009 20:58:
>> I have been trying to compile a program that needs to use the pthread
>> library under cygwin. I have installed the newest versions of all of the
>> tools. The file pthread.h is there in /usr/include, but the types used
>> in it, like pthread_attr_t for example, are normally defined in
>> sys/types.h. Except that for cygwin, they are not there. Trying to
>> compile it with an older version of the file types.h that had these
>> types defined resulted in incompatibilities for other types, like
>> time_t, for example.
> The types are there. Your installation is broken somehow.

  Possibly the include paths are wrong.  If you manually add -I options to
your compiler command-line specifying the standard system directories, you
will break compilation because (e.g.) Gcc's private includes dir with the
fixed headers won't be found first in the list.  This can cause all kinds of
odd knock-on failures later in compilation.

  Dana, can we see the command-line you are using?

    cheers,
      DaveK

--
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