This is the mail archive of the
mailing list for the Cygwin project.
Re: cannot compile function containing "get_current_dir_name"
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, stamen at kip dot uni-heidelberg dot de
- Date: Tue, 21 Aug 2007 06:23:58 -0600
- Subject: Re: cannot compile function containing "get_current_dir_name"
- References: <46CA9DA8.firstname.lastname@example.org>
-----BEGIN PGP SIGNED MESSAGE-----
According to Rainer Stamen on 8/21/2007 2:09 AM:
> I try to compile a program which contains a call to
> "get_current_dir_name". The compiler complains that the fucntion is
Probably because cygwin does not declare a function by that name.
> From checking the archives I learned that the problem
> existed already in the past. However the proposed fix (add #define
> _GNU_SOURCE) seems not to work for me.
Are you sure you didn't mean to use getcwd(), which cygwin DOES define,
and without the need for _GNU_SOURCE, because it is specified by POSIX?
Don't work too hard, make some time for fun as well!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html