X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_40,SARE_HELO_EQ_CUST,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: David Subject: Cygwin c compiler and c99 Date: Sun, 31 Oct 2010 14:21:57 +0100 Lines: 22 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; da; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 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 Does Cygwin c compiler not support c99? or does c99 not support?: #include #include int main(void) { bool f=true; for(int i=0; i<10; i++) { if (f) printf("%d\n",i); } puts("Hello World!!!"); /* prints Hello World!!! */ return EXIT_SUCCESS; } Here the bool declaration fails and so do the for statement. The compiler doesn't like that I use the iteration variable inside the for-loop. What shall I do to fix it? Cygwin 1.7.7, Eclipse Helios, Windows 7 -- 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