| From: | Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com> |
|---|---|
| To: | Andrej <andrej(dot)groups(at)gmail(dot)com> |
| Cc: | Amish <amish(dot)pandya(at)in(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
| Subject: | Re: ERROR: invalid datatype 'FILE' |
| Date: | 2011-02-02 06:13:16 |
| Message-ID: | 4D48F5FC.4030208@vmsinfo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)medo tmp]$ gcc ttt.c -o ttt
[mgogala(at)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Wood | 2011-02-02 07:56:58 | Re: ERROR: invalid datatype 'FILE' |
| Previous Message | Amish | 2011-02-02 03:55:00 | Re: ERROR: invalid datatype 'FILE' |