My code use strupr func which is defined in string.h.
But with
$ gcc -std=c99 -c -o grid.o grid.c
I got
grid.c:236: warning: implicit declaration of function 'strupr'.
This is because with -std=c99 gcc define __STRICT_ANSI__:
$ gcc -std=c99 -dM -E - /dev/null | grep __STRICT_ANSI__
On 3/22/2010 6:03 AM, Oleksandr Gavenko wrote:
Current workaround is undefine __STRICT_ANSI__:
$ gcc -std=c99 -U__STRICT_ANSI__ -c -o grid.o grid.c
Where is proper place to report issue?
If you want c99 plus gcc extensions without warnings, how about
-std=gnu99? It seems this may become
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.
--
Problem reports: http://cygwin.com/problems.html
FAQ:
On 2010.03.22 15:30, Tim Prince wrote:
On 3/22/2010 6:03 AM, Oleksandr Gavenko wrote:
Current workaround is undefine __STRICT_ANSI__:
$ gcc -std=c99 -U__STRICT_ANSI__ -c -o grid.o grid.c
Where is proper place to report issue?
If you want c99 plus gcc extensions without warnings, how about
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
5 matches
Mail list logo