delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/22/09:36:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua>
Subject: Re: __STRICT_ANSI__ with -std=c99
Date: Mon, 22 Mar 2010 16:35:46 +0200
Lines: 18
Message-ID: <ho7v83$mju$1@dough.gmane.org>
References: <ho7prb$vj9$1 AT dough DOT gmane DOT org> <4BA771E3 DOT 2080505 AT sbcglobal DOT net>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
In-Reply-To: <4BA771E3.2080505@sbcglobal.net>
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

On 2010.03.22 15:34, Greg Chicares wrote:
> On 2010-03-22 13:03Z, Oleksandr Gavenko wrote:
>>
>>     $ gcc -std=c99 -c -o grid.o grid.c
> [...]
>> grid.c:236: warning: implicit declaration of function 'strupr'.
>
> I'd expect that warning, because C99 defines no strupr() function.
>
Ok.

But that the way to say to gcc use extended functions?

By -std=gnu99? This function available only if
exist corresponding prototype in header and libc
contain func realization.

As I know libc and system header is not always part of GCC.


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