From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
To: cygwin-developers@cygwin.com
Subject: Re: Broken header dirent.h
Date: Mon, 14 Jul 2014 14:51:00 -0000 [thread overview]
Message-ID: <53C3EE58.6090505@cs.utoronto.ca> (raw)
In-Reply-To: <20140714084902.GA10877@calimero.vinschen.de>
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 <sys/dirent.h> 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 <sys/dirent.h> is not meant to be done
> in application code. The POSIX header is <dirent.h>, not <sys/dirent.h>:
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html
>
> If you include <dirent.h>, 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
prev parent reply other threads:[~2014-07-14 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-12 17:54 Ryan Johnson
2014-07-14 8:49 ` Corinna Vinschen
2014-07-14 14:51 ` Ryan Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C3EE58.6090505@cs.utoronto.ca \
--to=ryan.johnson@cs.utoronto.ca \
--cc=cygwin-developers@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).