delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/13/05:23:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=T6qHK6F5aTfJea7Lm+HNpgtHxAA4E2LWth4jUNqbRad
heiEK+kGShOvNws9Ztz3hsicgRUDUu7D4Y+QqlEqcd5/K/0d3o/g5uPnzpsFaeba
ekaaE6yUiDNKn6VRaR4ACb5GsMQaD5036dsR4b1eGYvVuXrWKhJsxE4VUC8SIl0A
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=vgPpKu8yZHxxK6qktI8XzG9gttw=; b=IyZk8zAJF5pkriMM/
9qwUq8eGxWy8zq9/dB4OuQ5/YD1Fcryr9GzTpsVUp76LvqudlNv+YnLw1fyN/0l9
Z/iTgfGYASTUGivo143cM/Os4jycyaoaeIsGtYSJOeOelnPx5jrwBi0MSwS1dT0T
bS1sHz4FL9XnlMGj8U1VhwuNDo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-bk0-f53.google.com
X-Received: by 10.205.37.13 with SMTP id tc13mr480325bkb.11.1394702567935; Thu, 13 Mar 2014 02:22:47 -0700 (PDT)
Message-ID: <532178DE.7060904@gmail.com>
Date: Thu, 13 Mar 2014 10:22:38 +0100
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: fltk check or enum quest
References: <5320A22C DOT 20006 AT gmail DOT com> <5320C90D DOT 2000609 AT tiscali DOT co DOT uk>
In-Reply-To: <5320C90D.2000609@tiscali.co.uk>
X-IsSubscribed: yes


On 12/03/2014 21:52, David Stacey wrote:
> On 12/03/2014 18:06, Marco Atzeri wrote:
>> I am hitting a gcc/fltk craziness, and I have no clue what to look for.
>>
>> The attached example is extracted from octave configure log,
>> and I am almost sure that nor the test nor the fltk header
>> are changed at all recently.
>>
>
> The problem is that the enumerations in FL/Enumerations.H are using the
> C++ style syntax, and the conftest source code has the '.c' extension,
> so gcc treats it as C.
>
> The C++ syntax for an enumeration is as follows:
>
>      enum EColours { eRed, eGreen, eBlue };
>
> The C syntax for an enumeration is as follows:
>
>      typedef enum { eRed, eGreen, eBlue } EColours;
>
> You have two options. Either patch FL/Enumerations.H to use the C syntax
> (there are also a number of C++ style comments that you may have to
> change). Or, change the test to write out a file with a '.cpp'
> extension, invoke g++ and drop the -Wimplicit-function-declaration (as
> this is not valid for C++).
>
> Hope this helps,
>
> Dave.

thanks very much.
At least I have a starting point

As FLTK is a C++ GUI toolkit, I start to suspect that the test was 
always wrongly designed, and only recently automake/autoconf/gcc
started to reject it.


Marco






--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019