From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14456 invoked by alias); 14 Jul 2014 14:51:43 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 14257 invoked by uid 89); 14 Jul 2014 14:51:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_NEUTRAL autolearn=ham version=3.3.2 X-HELO: bureau83.ns.utoronto.ca Received: from bureau83.ns.utoronto.ca (HELO bureau83.ns.utoronto.ca) (128.100.132.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 14 Jul 2014 14:51:33 +0000 Received: from [138.51.140.45] ([138.51.140.45]) (authenticated bits=0) by bureau83.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id s6EEpQE7023023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Jul 2014 10:51:27 -0400 Message-ID: <53C3EE58.6090505@cs.utoronto.ca> Date: Mon, 14 Jul 2014 14:51:00 -0000 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin-developers@cygwin.com Subject: Re: Broken header dirent.h References: <53C17623.60807@cs.utoronto.ca> <20140714084902.GA10877@calimero.vinschen.de> In-Reply-To: <20140714084902.GA10877@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00002.txt.bz2 On 14/07/2014 4:49 AM, Corinna Vinschen wrote: > Hi Ryan, > > On Jul 12 13:53, Ryan Johnson wrote: >> Hi all, >> >> Please CC me in replies, I'm no longer a list member. > Given the massive amount of mail on this list I can see your point... ;) Actually, I do seem to be a list member of this list after all. It's the main cygwin list that had too much traffic. >> I recently tried to use in a C++ program and got linker >> errors. Turns out the header is neither C++-aware (extern "C") nor >> cygwin-aware (_EXFUN). > It doesn't have to be. Including is not meant to be done > in application code. The POSIX header is , not : > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html > > If you include , your linker problems should go away. Oops... I must have misread a man page somewhere. Could have sworn it said to use sys/dirent.h, but die.net (my usual go-to for man pages since I can't figure out how to install them locally) definitely agrees with you. Thanks, Ryan