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=aIq8PS8HjpLT74JXwlRh3obOP35Ek/Te/l+ayeqwj82 40qyY4o/gotqJecCO7kNqG9cOW+zRhiZR/SPR533E0xrrG1O7dXHVf38Udhu5Wkl hrSnvwCmLjIYpryiFsvCMGxkuHEt3ARvJbHO+N+PDZ4F3koDIb2j51E/ZcHOPjf0 = 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=im8sKE/X+nRuYpYTQMKYPaQ4O7Y=; b=LFM56gmwuB7dspfGh 0KOa0NrR3UQTibiFgaAc9yD4tJp3WA9JaZU15Bo2Bv0I/RyGMI3EX2YeWo8kmGyr 4FG8U3fklEiyoLU3HgicVTfsVnhR4WVhJIznie1iYQxceFdk9FM5ET4rFm4ru+N6 pafjW2+lYuzxLWk1y/SzAA4Xx0= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_COUK,SPF_PASS autolearn=no version=3.3.2 X-HELO: out.ipsmtp3nec.opaltelecom.net X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBALDIIFNPRtAq/2dsb2JhbAANTMJlgwqBNoMZAQEBBDhAEQsYCRYPCQMCAQIBRRMIAQG4UaJAF45jFoQiAQOuHw X-IPAS-Result: ApMBALDIIFNPRtAq/2dsb2JhbAANTMJlgwqBNoMZAQEBBDhAEQsYCRYPCQMCAQIBRRMIAQG4UaJAF45jFoQiAQOuHw Message-ID: <5320C90D.2000609@tiscali.co.uk> Date: Wed, 12 Mar 2014 20:52:29 +0000 From: David Stacey 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> In-Reply-To: <5320A22C.20006@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. -- 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