Re: C++/Informix and Prototypes
Posted in 1995
Parviz Siamak (siac@ma.ultranet.com) wrote: : Hi, : CodeCenter Linker complains about undefined symbols. These are : some of the Informix ESQL/C functions. : Tried defining prototypes. No use. Informix has no answer. : What is the solution? Could anybody give me a hint? Appreciate it : a lot. : Thank You, : Parviz Siamak You can define them yourself, using the c file generated by esql to help: extern "C" { void _iqdbase(char *, int); void _iqdbclose(void); void _iqstmnt(_SQSTMT*, const char **, int, void *, char *); void _iqslct(_SQCURSOR*, const char **, int, void *, int, void *, char *); _SQCURSOR* _iqlocate_cursor(const char *, void *, void *); void _iqcdcl(_SQCURSOR*, const char *, const char **, struct sqlda *, struct sqlda *, void *); void _iqclose(_SQCURSOR*); void _iqdcopen(_SQCURSOR*, struct sqlda *, char *, char *, void *); void _iqcftch(_SQCURSOR*, struct sqlda *, struct sqlda *, char *, struct _FetchSpec *); } -- ========================================================= Carol L. Stimmel stimmel@fsl.noaa.gov Systems Analyst =========================================================