Thanks for the reply
ESQL/C is informix utility. ESQL/C is an SQL application programming
interface (API) that enables developers to embed Structured Query Language
(SQL) statements directly into a C program. This is quite similer to ECPG.
The problem i am facing is bit different. When i remove "FILE *fp" from
declare section (ie. BEGIN DECLARE and END DECLARE) and put outside of
declare section the program compiles successfully.
e.g
#include <stdlib.h>
#include <stdio.h>
EXEC SQL BEGIN DECLARE SECTION;
struct rid_ds
{
double de_re_rid;
double de_re_xrid;
} dbinfo_t;
dbinfo_t dbval;
EXEC SQL END DECLARE SECTION;
FILE *fp;
main()
{
printf("Test Program :\n");
}
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/ERROR-invalid-datatype-FILE-tp3365733p3367328.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.