X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=BAYES_00,TW_SV
X-Spam-Check-By: sourceware.org
Message-ID: <4CC198DB.2000204@dyximaq.de>
Date: Fri, 22 Oct 2010 15:59:55 +0200
From: Dirk Sondermann <ds-15405@dyximaq.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: tinyfugue with python won't compile under cygwin (1.7.7) on Windows XP
References: <AANLkTikYLWCqgX1tTwApb49wdn_tv_6pjWP6HR9upsPK@mail.gmail.com> <AANLkTincRaGyPuUmm5x5jXuL3sNLTa3N32ST_7BB=Qzw@mail.gmail.com> <AANLkTinKikCdwJV5dN__x61g+wj36EX5dhvcJqbSdWR8@mail.gmail.com>
In-Reply-To: <AANLkTinKikCdwJV5dN__x61g+wj36EX5dhvcJqbSdWR8@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 22.10.2010 10:21, Gwen Morse wrote:

> Recap: I'm having trouble compiling tinyfuge, a mud client, under
> cygwin 1.7, with an add-on patch that allows the inclusion of a python
> library. I was getting some error messages, posted them here, and was
> told it was probably an issue with using "wprinttf" instead of
> "tf_wprinttf".

You don't have to replace wprintf with tf_wprintf in the source by hand.

The macro definition "#define wprintf tf_wprintf" is intended to avoid
a collision between the wprintf function definded in src/tfio.h and the
version defined in wchar.h by replacing the former with tf_wprintf and
leaving the latter untouched. At present, this does not work because
the macro is applied to both files. You can get rid of this problem
by including wchar.h in src/tfio.h *before* the macro is defined:

$ svn co svn://sizer99.com/tf-50b8-py
$ cd tf-50b8-py
$ sed -i '29 s/.*/#include <wchar.h>/' src/tfio.h
$ ./configure
$ make

-Dirk

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

