Hello. I have a 2 files: test.h and test.pgc.
In test.h, I defined: typedef struct { long curid; char curnombre[20]; char curfecha[10]; } struct_cursor; And, in test.pgc, I want to declare: EXEC SQL BEGIN DECLARE SECTION; struct_cursor t_cursor; EXEC SQL END DECLARE SECTION; But, when I do: ecpg -I/<include_file_path> test.pgc, I get: test.pgc:7: ERROR: invalid datatype 'struct_cursor' I know that I can include the typedef at DECLARE SECTION, but I don't want to use that (test.h and test.pgc are only examples of the problem bigest). How can I resolve this? Thanks. CG ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings