Re: ERROR: invalid datatype 'FILE'
| От | Mladen Gogala |
|---|---|
| Тема | Re: ERROR: invalid datatype 'FILE' |
| Дата | |
| Msg-id | 4D48F5FC.4030208@vmsinfo.com обсуждение исходный текст |
| Ответ на | Re: ERROR: invalid datatype 'FILE' (Andrej <andrej.groups@gmail.com>) |
| Ответы |
Re: ERROR: invalid datatype 'FILE'
|
| Список | 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 по дате отправления: