Re: ERROR: invalid datatype 'FILE' - Mailing list pgsql-novice

From Mladen Gogala
Subject Re: ERROR: invalid datatype 'FILE'
Date
Msg-id 4D48F5FC.4030208@vmsinfo.com
Whole thread Raw
In response to Re: ERROR: invalid datatype 'FILE'  (Andrej <andrej.groups@gmail.com>)
Responses Re: ERROR: invalid datatype 'FILE'
List pgsql-novice
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


pgsql-novice by date:

Previous
From: Andrej
Date:
Subject: Re: ERROR: invalid datatype 'FILE'
Next
From: Michael Wood
Date:
Subject: Re: ERROR: invalid datatype 'FILE'