__STRICT_ANSI__ with -std=c99

Oleksandr Gavenko gavenko@bifit.com.ua
Mon Mar 22 14:57:00 GMT 2010


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



More information about the Cygwin mailing list