X-Spam-Check-By: sourceware.org Message-ID: <46CAD95E.4090203@byu.net> Date: Tue, 21 Aug 2007 06:23:58 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, stamen AT kip DOT uni-heidelberg DOT de Subject: Re: cannot compile function containing "get_current_dir_name" References: <46CA9DA8 DOT 9020900 AT kip DOT uni-heidelberg DOT de> In-Reply-To: <46CA9DA8.9020900@kip.uni-heidelberg.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----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 AT byu DOT 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/