Re: [warning: implicit declaration of function] if enable flag std=c99

2009-10-14 Thread Dave Korn
Dave Korn wrote: > If you use --std=c99, that means you want *only* c99 functions, and have > specifically asked to be warned about non-ANSI functions. I don't > understand why Linux does things differently, it's probably technically > wrong but trying to be helpful, It's being POSIX complian

Re: [warning: implicit declaration of function] if enable flag std=c99

2009-10-11 Thread Dave Korn
Andy Koppe wrote: > 2009/10/11 Salvatore Santagati: >> Nope, but under Linux works as well ( with and without std=c99 ) , >> under cygwin if enable std=c99 >> I've these type of warning ( source code here is only an example ) > > Seems Linux has got it wrong then, because ftello and fseeko are not

Re: [warning: implicit declaration of function] if enable flag std=c99

2009-10-11 Thread Andy Koppe
2009/10/11 Salvatore Santagati: > Nope, but under Linux works as well ( with and without std=c99 ) , > under cygwin if enable std=c99 > I've these type of warning ( source code here is only an example ) Seems Linux has got it wrong then, because ftello and fseeko are not standard C99 functions. Us

Re: [warning: implicit declaration of function] if enable flag std=c99

2009-10-11 Thread Salvatore Santagati
Nope, but under Linux works as well ( with and without std=c99 ) , under cygwin if enable std=c99 I've these type of warning ( source code here is only an example ) anyway if i am off topic sorry Salvatore On Sun, Oct 11, 2009 at 6:40 PM, Andy Koppe wrote: >> I've tried to compile a source co

Re: [warning: implicit declaration of function] if enable flag std=c99

2009-10-11 Thread Andy Koppe
> I've tried to compile a source code[1] with this flags > "-D_FILE_OFFSET_BITS=64 -pedantic -Wconversion -Wpointer-arith > -Wcast-align -std=c99" and output is > > lfs.c: In function 'main': > lfs.c:26: warning: implicit declaration of function 'fseeko' > lfs.c:28: warning: implicit declaration of

[warning: implicit declaration of function] if enable flag std=c99

2009-10-11 Thread Salvatore Santagati
Hi I've tried to compile a source code[1] with this flags "-D_FILE_OFFSET_BITS=64 -pedantic -Wconversion -Wpointer-arith -Wcast-align -std=c99" and output is lfs.c: In function 'main': lfs.c:26: warning: implicit declaration of function 'fseeko' lfs.c:28: warning: implicit declaration of function