From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20958 invoked by alias); 14 Jul 2014 08:49:07 -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 20937 invoked by uid 89); 14 Jul 2014 08:49:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Jul 2014 08:49:04 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 828FE8E0600; Mon, 14 Jul 2014 10:49:02 +0200 (CEST) Date: Mon, 14 Jul 2014 08:49:00 -0000 From: Corinna Vinschen To: cygwin-developers@cygwin.com, Ryan Johnson Subject: Re: Broken header dirent.h Message-ID: <20140714084902.GA10877@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com, Ryan Johnson References: <53C17623.60807@cs.utoronto.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <53C17623.60807@cs.utoronto.ca> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-07/txt/msg00001.txt.bz2 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 801 Hi Ryan, On Jul 12 13:53, Ryan Johnson wrote: > Hi all, >=20 > 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... ;) > 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. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTw5l+AAoJEPU2Bp2uRE+gxUMP/jWCAKXYFsZYML9HKCn5NRq/ KeZyBN/aqrDqXJbKQM4xAIkBypmYQifoAzZjVwCbHOSKytgzwbGZWnRxA1ee7i0O gPjtBTf6a5NU0emiNW4Dx1ubWtUrXdJY+CNWT/aY8fFrK6FCEZwU1cG84uG44ekZ w9waUQwlONC3PIU8FvauLKX3QErc8ONXW+mjQg5OsbRVfcF6Ez5InQXNun1F/HdT lZ+ihr5adRyIej/7ksH9Z9nwQl92DZ3AOb/R1NbEBRUf1cECVeRABz55Hxs4p1jP mHe/+z9JFC+2m0EijrYZ6CkOM9v+nfCe5wQduivkaLDApNXicZp8oGue0O3xvvaR Jn3QPDQhtcBSd95rCiMV/D6dInUChnEoKd0MgG/7AQOa9HLT660V3uq8yS1npt5j pWk9I/STDoGm9s6lPduONvQjFzGxfw1ZGnLGs2aDc89NjpitRwaqtzB/WPKVajVJ TT/LJV1uitxB6VvFxCVHsWLgqmoCdpC5AhKjBND4ESA3NbaRY0V+APpcuuptyk27 8Ft6XY3uFkis+/UIeCf5fP+/lOppt+A3UAlMfjCYRmBKQUjJeqX1VZhAecbDUhEM P5zrdNTELSKTdLwgLhdgXXH+LZXXJCRwb79oX/068sMjmul7GI+KouCE20GMF7pz 6UGVgOBhPo6G0mzlloMs =5DYn -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--