Andrej wrote:
>
>
> I have no idea what esqlc is, but I'll hazard a guess that it by
> default includes
> something that actually defines FILE. FILE isn't defined in stdio.h
> or stdlib.h,
> for that matter, so I'm not really surprised that it won't compile.
>
Actually, it is defined in stdio.h:
cat ttt.c
#include <stdio.h>
main() {
FILE *fp=fopen("/tmp/aaa","w+");
fprintf(fp,"Hello World!\n");
}
[mgogala@medo tmp]$ gcc ttt.c -o ttt
[mgogala@medo tmp]$
No complaints. It even executes. This program, of course, is bug free.
--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com