This is the mail archive of the
cygwin
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.9020900@kip.uni-heidelberg.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Rainer Stamen on 8/21/2007 2:09 AM:
> Hi,
>
> I try to compile a program which contains a call to
> "get_current_dir_name". The compiler complains that the fucntion is
> undeclared.
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 ebb9@byu.net
-----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
iD8DBQFGytle84KuGfSFAYARAvZOAJ9wyP20HyXe9jylQTT7qjcUV83fLACg0KRU
YhEqb+4w72fWyoL/vvfUFx0=
=xzrC
-----END PGP SIGNATURE-----
--
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/