| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=0.1 required=5.0 tests=AWL,BAYES_20,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 <dbj AT vip DOT cybercity DOT dk> |
| Subject: | Re: Cygwin c compiler and c99 |
| Date: | Sun, 31 Oct 2010 15:39:46 +0100 |
| Lines: | 25 |
| Message-ID: | <iajv3i$6fu$1@dough.gmane.org> |
| References: | <iajqhl$kq7$1 AT dough DOT gmane DOT org> <4CCD72FF DOT 1000901 AT aol DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; da; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 |
| In-Reply-To: | <4CCD72FF.1000901@aol.com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
By adding #include <stdbool.h> it worked.
Den 31-10-2010 14:45, Tim Prince skrev:
> On 10/31/2010 6:21 AM, David wrote:
>>
>> Does Cygwin c compiler not support c99?
>> or does c99 not support?:
>>
>> #include <stdio.h>
>> #include <stdlib.h>
#include <stdbool.h>
>>
>> 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;
>> }
>>
But why do I have to include <stdbool.h>?
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |